Improve 64-subtraction of immediates when parts of the immediate can fit
authorJim Grosbach <grosbach@apple.com>
Wed, 14 Jul 2010 17:45:16 +0000 (17:45 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 14 Jul 2010 17:45:16 +0000 (17:45 +0000)
commit502e0aa62833a1648d66c8f7edf5d21cf96c2f56
tree61e13517a5fc09e2614aa36e360bda51ea553118
parent2dd50e656f048d222aaaa57168688326fa52421b
Improve 64-subtraction of immediates when parts of the immediate can fit
in the literal field of an instruction. E.g.,
long long foo(long long a) {
  return a - 734439407618LL;
}

rdar://7038284

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108339 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb2.td
test/CodeGen/ARM/sub.ll [new file with mode: 0644]
test/CodeGen/Thumb2/thumb2-sbc.ll
test/CodeGen/Thumb2/thumb2-sub3.ll [new file with mode: 0644]