diff options
author | Matthias Braun <matze@braunis.de> | 2014-12-11 21:26:47 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2014-12-11 21:26:47 +0000 |
commit | 7e37a5f52347f7bc9c09471e731e3209e0583a3d (patch) | |
tree | 6008db5b6412401a9d5775ce4acf26b8e90a10db /llvm/lib/Target/XCore | |
parent | df036085f0fcedf405e36622c203045e072e57fd (diff) | |
download | bcm5719-llvm-7e37a5f52347f7bc9c09471e731e3209e0583a3d.tar.gz bcm5719-llvm-7e37a5f52347f7bc9c09471e731e3209e0583a3d.zip |
[CodeGen] Add print and verify pass after each MachineFunctionPass by default
Previously print+verify passes were added in a very unsystematic way, which is
annoying when debugging as you miss intermediate steps and allows bugs to stay
unnotice when no verification is performed.
To make this change practical I added the possibility to explicitely disable
verification. I used this option on all places where no verification was
performed previously (because alot of places actually don't pass the
MachineVerifier).
In the long term these problems should be fixed properly and verification
enabled after each pass. I'll enable some more verification in subsequent
commits.
This is the 2nd attempt at this after realizing that PassManager::add() may
actually delete the pass.
llvm-svn: 224059
Diffstat (limited to 'llvm/lib/Target/XCore')
-rw-r--r-- | llvm/lib/Target/XCore/XCoreTargetMachine.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Target/XCore/XCoreTargetMachine.cpp b/llvm/lib/Target/XCore/XCoreTargetMachine.cpp index 0fa8c219654..21ebf455607 100644 --- a/llvm/lib/Target/XCore/XCoreTargetMachine.cpp +++ b/llvm/lib/Target/XCore/XCoreTargetMachine.cpp @@ -48,7 +48,7 @@ public: void addIRPasses() override; bool addPreISel() override; bool addInstSelector() override; - bool addPreEmitPass() override; + void addPreEmitPass() override; }; } // namespace @@ -72,9 +72,8 @@ bool XCorePassConfig::addInstSelector() { return false; } -bool XCorePassConfig::addPreEmitPass() { - addPass(createXCoreFrameToArgsOffsetEliminationPass()); - return false; +void XCorePassConfig::addPreEmitPass() { + addPass(createXCoreFrameToArgsOffsetEliminationPass(), false); } // Force static initialization. |