[PATCH] D37660: [ScalarEvolution] Handling Conditional Instruction in SCEV chain.

Sanjoy Das via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 26 14:32:08 PDT 2017


sanjoy requested changes to this revision.
sanjoy added inline comments.
This revision now requires changes to proceed.


================
Comment at: test/Analysis/ScalarEvolution/cond_1.ll:15
+  %inc = zext i1 %cmp to i32
+  %inc.start.0 = add nsw i32 %start.0, %inc
+  br i1 %cmp, label %do.body, label %do.end
----------------
I thought @jbhateja 's patch should already get cases like these?  If you care about switch instructions, you probably need to add support for switches to the rewriter he's written (it already supports select).


https://reviews.llvm.org/D37660





More information about the llvm-commits mailing list