[llvm] r285397 - [SelectionDAG] Increment computeKnownBits recursion depth for SMIN/SMAX/UMIN/UMAX like all other ops
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 28 06:13:16 PDT 2016
Author: rksimon
Date: Fri Oct 28 08:13:16 2016
New Revision: 285397
URL: http://llvm.org/viewvc/llvm-project?rev=285397&view=rev
Log:
[SelectionDAG] Increment computeKnownBits recursion depth for SMIN/SMAX/UMIN/UMAX like all other ops
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=285397&r1=285396&r2=285397&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Fri Oct 28 08:13:16 2016
@@ -2467,8 +2467,8 @@ void SelectionDAG::computeKnownBits(SDVa
case ISD::UMAX: {
APInt Op0Zero, Op0One;
APInt Op1Zero, Op1One;
- computeKnownBits(Op.getOperand(0), Op0Zero, Op0One, Depth);
- computeKnownBits(Op.getOperand(1), Op1Zero, Op1One, Depth);
+ computeKnownBits(Op.getOperand(0), Op0Zero, Op0One, Depth+1);
+ computeKnownBits(Op.getOperand(1), Op1Zero, Op1One, Depth+1);
KnownZero = Op0Zero & Op1Zero;
KnownOne = Op0One & Op1One;
More information about the llvm-commits
mailing list