Temporary workaround for a bad bug introduced by r121082 which replaced
authorEvan Cheng <evan.cheng@apple.com>
Tue, 8 Feb 2011 03:07:03 +0000 (03:07 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 8 Feb 2011 03:07:03 +0000 (03:07 +0000)
commit75396a998887220074b90f176e29054a35b6c0ed
tree3611809d85c90f77432ba92492cdc8dff5fb2013
parent3ef9838f89617fc471b6b84a64c7af824a070e50
Temporary workaround for a bad bug introduced by r121082 which replaced
t2LDRpci with t2LDRi12.
There are a couple of problems with this.
1. The encoding for the literal and immediate constant are different.
   Note bit 7 of the literal case is 'U' so it can be negative.
2. t2LDRi12 is now narrowed to tLDRpci before constant island pass is run.
   So we end up never using the Thumb2 instruction, which ends up creating a
   lot more constant islands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125074 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMConstantIslandPass.cpp
lib/Target/ARM/Thumb2SizeReduction.cpp