[llvm] [Analysis] Avoid running transform passes that have just been run (PR #112092)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 13 20:41:43 PDT 2024
================
@@ -43,12 +43,20 @@ struct InstCombineOptions {
MaxIterations = Value;
return *this;
}
+
+ /// Only enable skipping in standard optimization pipeline.
+ bool isCompatibleWith(const InstCombineOptions &LastOption) const {
+ return !VerifyFixpoint && !LastOption.VerifyFixpoint &&
+ MaxIterations == InstCombineDefaultMaxIterations &&
+ LastOption.MaxIterations == InstCombineDefaultMaxIterations;
----------------
goldsteinn wrote:
Shouldn't it just be `VerifyFixpoint == LastOption.VerifyFixPoint && MaxIterations == LastOption.MaxIteration`?
https://github.com/llvm/llvm-project/pull/112092
More information about the llvm-commits
mailing list