[PATCH] D151659: Constant propogation through freeze instruction
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 30 08:17:21 PDT 2023
fhahn accepted this revision.
fhahn added a comment.
LGTM, thanks!
================
Comment at: llvm/lib/Transforms/Utils/SCCPSolver.cpp:1415
+ if (SCCPSolver::isConstant(V0State)) {
+ if (isGuaranteedNotToBeUndefOrPoison(getConstant(V0State)))
+ return (void)markConstant(IV, &I, getConstant(V0State));
----------------
nit: fold into previous if?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151659/new/
https://reviews.llvm.org/D151659
More information about the llvm-commits
mailing list