[TTI/CostModel] Correct the way getGEPCost() calls isLegalAddressingMode()
authorHaicheng Wu <haicheng@codeaurora.org>
Sat, 3 Dec 2016 01:57:24 +0000 (01:57 +0000)
committerHaicheng Wu <haicheng@codeaurora.org>
Sat, 3 Dec 2016 01:57:24 +0000 (01:57 +0000)
commit584042981d729e61cb3ebdbe7608ebb1538d59b8
treef84cdf18918cff2e8e210aaaafefb815f6588cce
parent520753a321bc764771c2d0b7b16284b5225edbdb
[TTI/CostModel] Correct the way getGEPCost() calls isLegalAddressingMode()

Fix a bug when we call isLegalAddressingMode() from getGEPCost().

Differential Revision: https://reviews.llvm.org/D27357

llvm-svn: 288569
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/test/Analysis/CostModel/AArch64/gep.ll [new file with mode: 0644]
llvm/test/Analysis/CostModel/ARM/gep.ll