Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed May 3, 2024
1 parent 7a11cfa commit 67cc13a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libclambcc/ClamBCLogicalCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ class LogicalNode : public FoldingSetNode
if (Node->kind == LOG_ADD) {
ConstantRange Cmp(APInt(32, value));
// a + c < b -> a+c in [0, b) -> a in [0-c, b-c)
/*TODO: Determine if makeSatisfyingICmpRegin is better than makeAllowedICmpRegion,
* If this is changed, check the rest.*/
ConstantRange ltRange = ConstantRange::makeSatisfyingICmpRegion(CmpInst::ICMP_ULT, Cmp);

ltRange = ltRange.subtract(APInt(32, Node->op0));
Expand Down

0 comments on commit 67cc13a

Please sign in to comment.