[PATCH] D114650: [SCEV] Construct SCEV iteratively.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 03:30:17 PDT 2022


fhahn added inline comments.


================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:7349
+    // returned getUnknown for a select constant expressions anyway.
+    if (isa<Instruction>(U)) {
+      for (Value *Inc : cast<Instruction>(U)->operands())
----------------
nikic wrote:
> I don't think this is strictly true due to the createNodeForSelectViaUMinSeq() code. And either way, I don't think we need to handle it this precisely here.
Thanks, I removed the check for Instruction to simplify things here.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114650



More information about the llvm-commits mailing list