[PATCH] D44001: [SCEV] Prove implications for SCEVUnknown Phis

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 5 13:18:08 PDT 2018


efriedma added inline comments.


================
Comment at: llvm/trunk/lib/Analysis/ScalarEvolution.cpp:9604
+    auto *Preheader = RLoop->getLoopPreheader();
+    assert(Preheader && "Loop with AddRec with no preheader?");
+    const SCEV *L1 = getSCEV(LPhi->getIncomingValueForBlock(Preheader));
----------------
This assertion is triggering on the polly-AOSP buildbot: http://lab.llvm.org:8011/builders/aosp-O3-polly-before-vectorizer-unprofitable/builds/477 .

I can try to reduce a testcase if you need it, but the assertion is pretty obviously just wrong: in general, SCEV doesn't care care whether a loop has a preheader.


Repository:
  rL LLVM

https://reviews.llvm.org/D44001





More information about the llvm-commits mailing list