Reason #3 from 60595 doesn't hold true. If we can fold a PIC load from constpool...
authorEvan Cheng <evan.cheng@apple.com>
Fri, 5 Dec 2008 17:41:31 +0000 (17:41 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 5 Dec 2008 17:41:31 +0000 (17:41 +0000)
commit650d7f3ff4d22646def71b842f7f163c539e0aaf
treeadbaae4cd8c7f3b2efeb8239320a51a992ea1cb1
parent84100ba83dd4500019fcbf43b6627a910dff153b
Reason #3 from 60595 doesn't hold true. If we can fold a PIC load from constpool into a use, the rewrite happens at time of spill (not in VirtRegMap). Later on, if the GlobalBaseReg is spilled, the spiller can see the use uses GlobalBaseReg and do the right thing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60596 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/Target/X86/X86InstrInfo.cpp