[PATCH] D91593: [IndVars] LCSSA Phi users should not prevent widening
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 17 00:28:04 PST 2020
mkazantsev created this revision.
mkazantsev added reviewers: skatkov, fhahn, lebedev.ri, reames.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
mkazantsev requested review of this revision.
When widening an IndVar that has LCSSA Phi users outside
the loop, we can safely widen it as usual and then truncate
the result outside the loop without hurting the performance.
https://reviews.llvm.org/D91593
Files:
llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
llvm/test/Transforms/IndVarSimplify/widen-loop-comp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91593.305676.patch
Type: text/x-patch
Size: 6077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201117/bf429d1c/attachment.bin>
More information about the llvm-commits
mailing list