With recent MC changes, RIP base register is explicitly modeled. Make sure we add...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 16 Jul 2009 18:44:05 +0000 (18:44 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 16 Jul 2009 18:44:05 +0000 (18:44 +0000)
commit2b48ab947cbc3a448f84062da9e1f1a4e27ad220
tree0dd1de5dde73421b3eba16ba07039b4b5e54d9c3
parentda24fe265a3bb8bd398824cb85cbd9469032d3c0
With recent MC changes, RIP base register is explicitly modeled. Make sure we add it when x86 V_SET0 / V_SETALLONES (by transforming it into a constpool load) into the use instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76094 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/2009-07-16-LoadFoldingBug.ll [new file with mode: 0644]