[PATCH] Remove SCEVCache and FindConstantPointers from complete loop unrolling heuristic.

Andrew Trick atrick at apple.com
Tue Jun 2 23:34:27 PDT 2015


Great use of SCEV.


================
Comment at: lib/Transforms/Scalar/LoopUnrollPass.cpp:304
@@ +303,3 @@
+
+  /// \brief Try to simplify instruction I using its SCEV expression.
+  ///
----------------
"I am"

================
Comment at: lib/Transforms/Scalar/LoopUnrollPass.cpp:326
@@ +325,3 @@
+          AR->evaluateAtIteration(IterationNumber, SE);
+      // Check if the AddRex expression becomes a constant.
+      if (auto *SC = dyn_cast<SCEVConstant>(ValueAtIteration)) {
----------------
"AddRec"

http://reviews.llvm.org/D10205

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list