summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-04-05 03:10:56 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-04-05 03:10:56 +0000
commit9243c4f7c54b8d0be22a4c9d411b15f462039d06 (patch)
tree768ec2f4128b47e5a5f7e1557309c3c1664afc1d /CMakeLists.txt
parent63246de68653ce330c55453cf9a18a306a4d2319 (diff)
downloadllvm-9243c4f7c54b8d0be22a4c9d411b15f462039d06.tar.gz
llvm-9243c4f7c54b8d0be22a4c9d411b15f462039d06.tar.bz2
llvm-9243c4f7c54b8d0be22a4c9d411b15f462039d06.tar.xz
Pass the right sign to TLI->isLegalICmpImmediate.
LSR can fold three addressing modes into its ICmpZero node: ICmpZero BaseReg + Offset => ICmp BaseReg, -Offset ICmpZero -1*ScaleReg + Offset => ICmp ScaleReg, Offset ICmpZero BaseReg + -1*ScaleReg => ICmp BaseReg, ScaleReg The first two cases are only used if TLI->isLegalICmpImmediate() likes the offset. Make sure the right Offset sign is passed to this method in the second case. The ARM version is not symmetric. <rdar://problem/11184260> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154079 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions