[PATCH] D111681: [IVUsers] Move preheader check into SCEVExpander
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 12 14:29:02 PDT 2021
nikic created this revision.
nikic added reviewers: reames, mkazantsev.
Herald added subscribers: javed.absar, hiraditya.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Rather than checking for loop nest preheaders upfront in IVUsers, move this requirement into isSafeToExpand() from SCEVExpander, which seems like logically the right place for this check.
This is a followup to https://reviews.llvm.org/D111493#3055286.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111681
Files:
llvm/include/llvm/Analysis/IVUsers.h
llvm/lib/Analysis/IVUsers.cpp
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111681.379187.patch
Type: text/x-patch
Size: 6571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211012/db2046a5/attachment.bin>
More information about the llvm-commits
mailing list