aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-05 03:54:32 +0000
committerChris Lattner <sabre@nondot.org>2008-01-05 03:54:32 +0000
commite9648f8981fad05dfdf0b964fae36084cd18ebf8 (patch)
tree42f7da1d9c44c3e1ceea1c6d6f00c3c581b7469d
parentba84ed7e9234b7a84009b3cb8475d1be7b1529d9 (diff)
getting the pic base has no side effects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45618 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86InstrInfo.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td
index 9bd30fe351..5f641076f0 100644
--- a/lib/Target/X86/X86InstrInfo.td
+++ b/lib/Target/X86/X86InstrInfo.td
@@ -282,8 +282,10 @@ def IMPLICIT_DEF_GR32 : I<0, Pseudo, (outs GR32:$dst), (ins),
def NOOP : I<0x90, RawFrm, (outs), (ins), "nop", []>;
// PIC base
+let neverHasSideEffects = 1 in {
def MOVPC32r : Ii32<0xE8, Pseudo, (outs GR32:$reg), (ins piclabel:$label),
"call\t$label\n\tpop{l}\t$reg", []>;
+}
//===----------------------------------------------------------------------===//
// Control Flow Instructions...