diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-12-21 20:05:06 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-12-21 20:05:06 +0000 |
commit | 23fd69560bce1a962046dc5eb4953b53fcda8329 (patch) | |
tree | 53e470f6b0c4949c6fbd2a70487d3fed1047072d /llvm/lib | |
parent | 22b4c256e12316a8f2ec5b02ecff606c9b54d438 (diff) | |
download | bcm5719-llvm-23fd69560bce1a962046dc5eb4953b53fcda8329.tar.gz bcm5719-llvm-23fd69560bce1a962046dc5eb4953b53fcda8329.zip |
[X86] Add hasSideEffects = 0 to CALLpcrel16. This matches what is inferred from patterns for the 32-bit version.
llvm-svn: 224692
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/X86/X86InstrControl.td | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/X86InstrControl.td b/llvm/lib/Target/X86/X86InstrControl.td index 11873d1bcbc..9b5bfb64487 100644 --- a/llvm/lib/Target/X86/X86InstrControl.td +++ b/llvm/lib/Target/X86/X86InstrControl.td @@ -188,10 +188,11 @@ let isCall = 1 in (outs), (ins i32imm_pcrel:$dst), "call{l}\t$dst", [], IIC_CALL_RI>, OpSize32, Requires<[Not64BitMode]>, Sched<[WriteJump]>; - def CALLpcrel16 : Ii16PCRel<0xE8, RawFrm, - (outs), (ins i16imm_pcrel:$dst), - "call{w}\t$dst", [], IIC_CALL_RI>, OpSize16, - Sched<[WriteJump]>; + let hasSideEffects = 0 in + def CALLpcrel16 : Ii16PCRel<0xE8, RawFrm, + (outs), (ins i16imm_pcrel:$dst), + "call{w}\t$dst", [], IIC_CALL_RI>, OpSize16, + Sched<[WriteJump]>; def CALL16r : I<0xFF, MRM2r, (outs), (ins GR16:$dst), "call{w}\t{*}$dst", [(X86call GR16:$dst)], IIC_CALL_RI>, OpSize16, Requires<[Not64BitMode]>, Sched<[WriteJump]>; |