summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-29 00:40:55 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-29 00:40:55 +0000
commita2578fe7f34632f064c96bd3308a2500e9fe1781 (patch)
tree762bff096d7bbe685b297d3cfd0308e0378fe888 /llvm/lib/CodeGen
parent033caa5895ec2446998b6c2a4d5ca6a2567fc455 (diff)
downloadbcm5719-llvm-a2578fe7f34632f064c96bd3308a2500e9fe1781.tar.gz
bcm5719-llvm-a2578fe7f34632f064c96bd3308a2500e9fe1781.zip
Run a verification pass before any splitting to better distribute blame.
llvm-svn: 117629
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/InlineSpiller.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp
index 05aa3886575..9a4da6c286d 100644
--- a/llvm/lib/CodeGen/InlineSpiller.cpp
+++ b/llvm/lib/CodeGen/InlineSpiller.cpp
@@ -104,6 +104,8 @@ namespace llvm {
Spiller *createInlineSpiller(MachineFunctionPass &pass,
MachineFunction &mf,
VirtRegMap &vrm) {
+ if (VerifySpills)
+ mf.verify(&pass);
return new InlineSpiller(pass, mf, vrm);
}
}
OpenPOWER on IntegriCloud