File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/Transforms/Scalar Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ bool LoopIdiomRecognize::runOnCountableLoop() {
341
341
342
342
// If this loop executes exactly one time, then it should be peeled, not
343
343
// optimized by this pass.
344
- if (match ( BECount, m_scev_SpecificInt ( 0 ) ))
344
+ if (BECount-> isZero ( ))
345
345
return false ;
346
346
347
347
SmallVector<BasicBlock *, 8 > ExitBlocks;
@@ -3268,7 +3268,7 @@ bool LoopIdiomRecognize::recognizeShiftUntilZero() {
3268
3268
// Ok, transform appears worthwhile.
3269
3269
MadeChange = true ;
3270
3270
3271
- bool OffsetIsZero = match ( ExtraOffsetExpr, m_scev_SpecificInt ( 0 ) );
3271
+ bool OffsetIsZero = ExtraOffsetExpr-> isZero ( );
3272
3272
3273
3273
// Step 1: Compute the loop's final IV value / trip count.
3274
3274
You can’t perform that action at this time.
0 commit comments