[PATCH] D42365: [LoopFlatten] Add a loop-flattening pass

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 22 05:35:54 PST 2018


samparker added inline comments.


================
Comment at: lib/Transforms/Scalar/LoopFlatten.cpp:114
+  if (!Compare ||
+      (Compare->getUnsignedPredicate() != CmpInst::ICMP_NE &&
+       Compare->getUnsignedPredicate() != CmpInst::ICMP_ULT) ||
----------------
Why are these predicates valid and not any others?


https://reviews.llvm.org/D42365





More information about the llvm-commits mailing list