OSDN Git Service

Don't be overly aggressive with CSE of "ldr constantpool". If it's a pc-relative
authorEvan Cheng <evan.cheng@apple.com>
Thu, 20 Jan 2011 23:55:07 +0000 (23:55 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 20 Jan 2011 23:55:07 +0000 (23:55 +0000)
commitd7e3cc840b81b0438e47f05d9664137a198876df
treee43d687614462ad01654f0ef2013aa9c2bc9938f
parente906921480beacea2dea2d5ce8156bc246ee12a7
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