llvm-project/llvm/test/Analysis/CostModel
Justin Lebar f84f7c7467 Convert an APInt to int64_t properly in TTI::getGEPCost().
Summary:
If the pointer width is 32 bits and the calculated GEP offset is
negative, we call APInt::getLimitedValue(), which does a
*zero*-extension of the offset.  That's wrong -- we should do an sext.

Fixes a bug introduced in rL314362 and found by Evgeny Astigeevich.

Reviewers: efriedma

Subscribers: sanjoy, javed.absar, llvm-commits, eastig

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

llvm-svn: 314935
2017-10-04 20:47:33 +00:00
..
AArch64 Recommit : Use the basic cost if a GEP is not used as addressing mode 2017-10-04 18:33:52 +00:00
AMDGPU AMDGPU: Don't assert in TTI with fp32 denorms enabled 2017-08-31 05:47:00 +00:00
ARM Convert an APInt to int64_t properly in TTI::getGEPCost(). 2017-10-04 20:47:33 +00:00
PowerPC [PPC] Give unaligned memory access lower cost on processor that supports it 2017-02-17 22:29:39 +00:00
SystemZ [SystemZ] Add support for IBM z14 processor (2/3) 2017-07-17 17:42:48 +00:00
X86 [TargetTransformInfo] Check if function pointer is valid before calling isLoweredToCall 2017-10-04 20:14:08 +00:00
no_info.ll Roll forward r243250 2015-07-26 19:10:03 +00:00