[PATCH] D77211: [LSR] do not replace PHI nodes if its scev is SCEVUnknown

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 1 07:41:03 PDT 2020


samparker added inline comments.


================
Comment at: llvm/lib/Analysis/ScalarEvolutionExpander.cpp:2040
         // If this phi has the same width but is more canonical, replace the
         // original with it. As part of the "more canonical" determination,
         // respect a prior decision to use an IV chain.
----------------
>From your description of the problem, can we just check the incoming values of the phis too?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77211/new/

https://reviews.llvm.org/D77211





More information about the llvm-commits mailing list