[llvm] [InstCombine] Support well-defined recurrences in isGuaranteedNotToBeUndefOrPoison (PR #150420)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 25 01:34:41 PDT 2025
================
@@ -7657,6 +7717,13 @@ static bool isGuaranteedNotToBeUndefOrPoison(
}
if (IsWellDefined)
return true;
+
+ bool StartNeedsFreeze;
+ if (canFoldFreezeIntoRecurrence(const_cast<PHINode *>(PN),
----------------
david-arm wrote:
Is it worth having a limit on the number of incoming values to make sure we keep compile time under control?
https://github.com/llvm/llvm-project/pull/150420
More information about the llvm-commits
mailing list