Skip to content

Commit c162f49

Browse files
committed
[InstCombine] Adjust isCompatibleWith
1 parent 4e78c9c commit c162f49

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/include/llvm/Transforms/InstCombine/InstCombine.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ struct InstCombineOptions {
4444
return *this;
4545
}
4646

47-
/// Only enable skipping in standard optimization pipeline.
47+
/// Only enable skipping when two versions of parameters are exactly the same.
4848
bool isCompatibleWith(const InstCombineOptions &LastOption) const {
49-
return !VerifyFixpoint && !LastOption.VerifyFixpoint &&
50-
MaxIterations == InstCombineDefaultMaxIterations &&
51-
LastOption.MaxIterations == InstCombineDefaultMaxIterations;
49+
return VerifyFixpoint == LastOption.VerifyFixpoint &&
50+
MaxIterations == LastOption.MaxIterations;
5251
}
5352
};
5453

0 commit comments

Comments
 (0)