From: Dan Gohman Date: Thu, 20 May 2010 15:42:55 +0000 (+0000) Subject: Set neverHasSideEffects on 64-bit pushf and popf, for consistency with X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=100804f494a4e17f588a1c62f5bb1eee4a67c8a9;p=oota-llvm.git Set neverHasSideEffects on 64-bit pushf and popf, for consistency with 16-bit and 32-bit pushf and popf. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104228 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86Instr64bit.td b/lib/Target/X86/X86Instr64bit.td index b67ea0e7c94..8b17f6f3d42 100644 --- a/lib/Target/X86/X86Instr64bit.td +++ b/lib/Target/X86/X86Instr64bit.td @@ -274,9 +274,9 @@ def PUSH64i32 : Ii32<0x68, RawFrm, (outs), (ins i32imm:$imm), "push{q}\t$imm", []>; } -let Defs = [RSP, EFLAGS], Uses = [RSP], mayLoad = 1 in +let Defs = [RSP, EFLAGS], Uses = [RSP], mayLoad = 1, neverHasSideEffects=1 in def POPFQ : I<0x9D, RawFrm, (outs), (ins), "popf{q}", []>, REX_W; -let Defs = [RSP], Uses = [RSP, EFLAGS], mayStore = 1 in +let Defs = [RSP], Uses = [RSP, EFLAGS], mayStore = 1, neverHasSideEffects=1 in def PUSHFQ64 : I<0x9C, RawFrm, (outs), (ins), "pushf{q}", []>; def LEA64_32r : I<0x8D, MRMSrcMem,