[PATCH] D125990: [LSR] Fix bug for optimizing unused IVs to final values
Zaara Syeda via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 26 09:55:17 PDT 2022
syzaara updated this revision to Diff 432317.
syzaara added a comment.
Shift handling into rewriteLoopExitValues so we can check each individual phi. Added a new entry to enum ReplaceExitVal called UnusedIndVar which will allow rewriteLoopExitValues to check for exit values that can be replaced when they are used as induction variables in the loop with no other uses in the loop.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125990/new/
https://reviews.llvm.org/D125990
Files:
llvm/include/llvm/Transforms/Utils/LoopUtils.h
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
llvm/lib/Transforms/Utils/LoopUtils.cpp
llvm/test/Transforms/LoopStrengthReduce/remove_scev_indvars.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125990.432317.patch
Type: text/x-patch
Size: 8024 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220526/740d3cac/attachment.bin>
More information about the llvm-commits
mailing list