[llvm-commits] CVS: llvm/tools/llc/llc.cpp
Reid Spencer
reid at x10sys.com
Wed Jul 27 21:01:00 PDT 2005
Changes in directory llvm/tools/llc:
llc.cpp updated: 1.109 -> 1.110
---
Log message:
Run the verifier pass after all the other passes rather than before them.
This catches mistakes in the passes rather than just verifying the bytecode
input to llc.
---
Diffs of the changes: (+4 -5)
llc.cpp | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
Index: llvm/tools/llc/llc.cpp
diff -u llvm/tools/llc/llc.cpp:1.109 llvm/tools/llc/llc.cpp:1.110
--- llvm/tools/llc/llc.cpp:1.109 Wed Jul 27 21:25:30 2005
+++ llvm/tools/llc/llc.cpp Wed Jul 27 23:00:49 2005
@@ -123,11 +123,6 @@
PassManager Passes;
Passes.add(new TargetData(TD));
-#ifndef NDEBUG
- if(!NoVerify)
- Passes.add(createVerifierPass());
-#endif
-
// Create a new pass for each one specified on the command line
for (unsigned i = 0; i < LLCPassList.size(); ++i) {
const PassInfo *aPass = LLCPassList[i];
@@ -141,6 +136,10 @@
}
}
+#ifndef NDEBUG
+ if(!NoVerify)
+ Passes.add(createVerifierPass());
+#endif
// Figure out where we are going to send the output...
std::ostream *Out = 0;
More information about the llvm-commits
mailing list