[PATCH] D73181: [SCEV] Use backedge SCEV of PHI only if its input is loop invariant
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 09:55:32 PST 2020
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:8253
+ const SCEV *OnBackedge = getSCEV(BackedgeVal);
+ if (IsLoopInvariantValue(BackedgeVal, LI))
return OnBackedge;
----------------
Why not just `LI->isLoopInvariant(BackedgeVal)`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73181/new/
https://reviews.llvm.org/D73181
More information about the llvm-commits
mailing list