Skip to content

Commit bee3d90

Browse files
committed
[SCCP] Drop outdated check.
1 parent 5147912 commit bee3d90

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/Transforms/Utils/SCCPSolver.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,6 @@ static Value *simplifyInstruction(SCCPSolver &Solver,
325325
// E.g, for X in [0, 4), X - 3 u< 2 -> X == 3
326326
if (!NewCR)
327327
return nullptr;
328-
// Avoid transforming cases which do not relax the range.
329-
// Without this we may revert the transform
330-
// (X - C) < Pow2 -> (X & -Pow2) == C.
331-
if (NewCR.value() == *CR)
332-
return nullptr;
333328
ICmpInst::Predicate Pred;
334329
APInt RHS;
335330
// Check if we can represent NewCR as an icmp predicate.

0 commit comments

Comments
 (0)