projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64f824c
)
Mark the divide instructions as hasSideEffects=0.
author
Craig Topper
<craig.topper@gmail.com>
Thu, 27 Dec 2012 03:01:18 +0000
(
03:01
+0000)
committer
Craig Topper
<craig.topper@gmail.com>
Thu, 27 Dec 2012 03:01:18 +0000
(
03:01
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171136
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86InstrArithmetic.td
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86InstrArithmetic.td
b/lib/Target/X86/X86InstrArithmetic.td
index 693815d42f7d3c40f435e2f38902c9cac19b809d..d56763ea9d266b675beceb43dc872da8e357e226 100644
(file)
--- a/
lib/Target/X86/X86InstrArithmetic.td
+++ b/
lib/Target/X86/X86InstrArithmetic.td
@@
-266,6
+266,7
@@
def IMUL64rmi8 : RIi8<0x6B, MRMSrcMem, // GR64 = [mem64]*I8
// unsigned division/remainder
+let hasSideEffects = 0 in {
let Defs = [AL,EFLAGS,AX], Uses = [AX] in
def DIV8r : I<0xF6, MRM6r, (outs), (ins GR8:$src), // AX/r8 = AL,AH
"div{b}\t$src", [], IIC_DIV8_REG>;
@@
-325,6
+326,7
@@
let Defs = [RAX,RDX,EFLAGS], Uses = [RAX,RDX] in // RDX:RAX/[mem64] = RAX,RDX
def IDIV64m: RI<0xF7, MRM7m, (outs), (ins i64mem:$src),
"idiv{q}\t$src", [], IIC_IDIV64>;
}
+} // hasSideEffects = 0
//===----------------------------------------------------------------------===//
// Two address Instructions.