Don't be overly aggressive with CSE of "ldr constantpool". If it's a pc-relative
commit7c7b45a69fdce3f0438152363ff4647b4abaacc2
authorEvan Cheng <evan.cheng@apple.com>
Thu, 20 Jan 2011 23:55:07 +0000 (20 23:55 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 20 Jan 2011 23:55:07 +0000 (20 23:55 +0000)
treee43d687614462ad01654f0ef2013aa9c2bc9938f
parent4a2bd97d0cc450b9e7f3a466763e1fcb39615461
Don't be overly aggressive with CSE of "ldr constantpool". If it's a pc-relative
value, the "add pc" must be CSE'ed at the same time. We could follow the same
approach as T2 by adding pseudo instructions that combine the ldr + "add pc".
But the better approach is to use movw + movt (which I will enable soon), so
I'll leave this as a TODO.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123949 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseInstrInfo.cpp
test/CodeGen/ARM/machine-licm.ll