diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-05-06 14:03:12 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-05-06 14:03:12 +0000 |
commit | d7c0be9c42e8c0f7ec844d5219ef51cbc5e1952a (patch) | |
tree | d719c3235b78d51744502953396e99994cdaee50 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 04785d04883b30b07899cb280829976fb5754497 (diff) | |
download | bcm5719-llvm-d7c0be9c42e8c0f7ec844d5219ef51cbc5e1952a.tar.gz bcm5719-llvm-d7c0be9c42e8c0f7ec844d5219ef51cbc5e1952a.zip |
Revert r236546, "propagate IR-level fast-math-flags to DAG nodes (NFC)"
It caused undefined behavior.
llvm-svn: 236600
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 6f22f425449..34ddeb7e9c3 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -2660,9 +2660,8 @@ SDValue TargetLowering::BuildExactSDIV(SDValue Op1, SDValue Op2, SDLoc dl, // TODO: For UDIV use SRL instead of SRA. SDValue Amt = DAG.getConstant(ShAmt, dl, getShiftAmountTy(Op1.getValueType())); - SDNodeFlags Flags; - Flags.setExact(true); - Op1 = DAG.getNode(ISD::SRA, dl, Op1.getValueType(), Op1, Amt, &Flags); + Op1 = DAG.getNode(ISD::SRA, dl, Op1.getValueType(), Op1, Amt, false, false, + true); d = d.ashr(ShAmt); } |