Move the code that uses SCEVs prior to creating the new loops.
[oota-llvm.git] / lib / Transforms / Instrumentation / Instrumentation.cpp
index c7266e2f8de648ce7084a18c0ed443b4d0bf8f30..1e0b4a348a17e5e73d3592d3932b3f0798e29e5e 100644 (file)
@@ -20,11 +20,12 @@ using namespace llvm;
 /// initializeInstrumentation - Initialize all passes in the TransformUtils
 /// library.
 void llvm::initializeInstrumentation(PassRegistry &Registry) {
+  initializeAddressSanitizerPass(Registry);
+  initializeBoundsCheckingPass(Registry);
   initializeEdgeProfilerPass(Registry);
+  initializeGCOVProfilerPass(Registry);
   initializeOptimalEdgeProfilerPass(Registry);
   initializePathProfilerPass(Registry);
-  initializeGCOVProfilerPass(Registry);
-  initializeAddressSanitizerPass(Registry);
   initializeThreadSanitizerPass(Registry);
 }