From: Ayman Musa Date: Wed, 26 Apr 2017 11:34:09 +0000 (+0000) Subject: [X86] Add missing mayLoad/mayStore attributes to some X86 instructions (Continue) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78f951e8363bccef3067774820aee4a3f95f480f;p=llvm [X86] Add missing mayLoad/mayStore attributes to some X86 instructions (Continue) Complete the patch committed in rL300190. Differential Revision: https://reviews.llvm.org/D32287 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301393 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86InstrArithmetic.td b/lib/Target/X86/X86InstrArithmetic.td index bfd21c062aa..66382014f6e 100644 --- a/lib/Target/X86/X86InstrArithmetic.td +++ b/lib/Target/X86/X86InstrArithmetic.td @@ -989,10 +989,12 @@ multiclass ArithBinOp_RF BaseOpc, bits<8> BaseOpc2, bits<8> BaseOpc4, } } // Constraints = "$src1 = $dst" - def NAME#8mr : BinOpMR_RMW; - def NAME#16mr : BinOpMR_RMW; - def NAME#32mr : BinOpMR_RMW; - def NAME#64mr : BinOpMR_RMW; + let mayLoad = 1, mayStore = 1 in { + def NAME#8mr : BinOpMR_RMW; + def NAME#16mr : BinOpMR_RMW; + def NAME#32mr : BinOpMR_RMW; + def NAME#64mr : BinOpMR_RMW; + } // NOTE: These are order specific, we want the mi8 forms to be listed // first so that they are slightly preferred to the mi forms.