[PATCH] D149132: [LICM] Reassociate & hoist add expressions
Serguei Katkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 25 19:33:28 PDT 2023
skatkov added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LICM.cpp:2588
+ // flag on operation, and the no-overflow of the new RHS is checked below.
+ if (!cast<OverflowingBinaryOperator>(LHS)->hasNoSignedWrap())
+ return false;
----------------
Will SCEV more powerful to check that LHS is NSW then just check of flag on instruction?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149132/new/
https://reviews.llvm.org/D149132
More information about the llvm-commits
mailing list