[llvm] r254855 - [WebAssembly] Call TargetPassConfig base class functions in overriding functions.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 5 11:24:17 PST 2015
Author: djg
Date: Sat Dec 5 13:24:17 2015
New Revision: 254855
URL: http://llvm.org/viewvc/llvm-project?rev=254855&view=rev
Log:
[WebAssembly] Call TargetPassConfig base class functions in overriding functions.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp?rev=254855&r1=254854&r2=254855&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp Sat Dec 5 13:24:17 2015
@@ -146,14 +146,20 @@ void WebAssemblyPassConfig::addIRPasses(
}
bool WebAssemblyPassConfig::addInstSelector() {
+ (void)TargetPassConfig::addInstSelector();
addPass(
createWebAssemblyISelDag(getWebAssemblyTargetMachine(), getOptLevel()));
return false;
}
-bool WebAssemblyPassConfig::addILPOpts() { return true; }
+bool WebAssemblyPassConfig::addILPOpts() {
+ (void)TargetPassConfig::addILPOpts();
+ return true;
+}
void WebAssemblyPassConfig::addPreRegAlloc() {
+ TargetPassConfig::addPreRegAlloc();
+
// Prepare store instructions for register stackifying.
addPass(createWebAssemblyStoreResults());
@@ -173,9 +179,13 @@ void WebAssemblyPassConfig::addPostRegAl
// Run the register coloring pass to reduce the total number of registers.
addPass(createWebAssemblyRegColoring());
+
+ TargetPassConfig::addPostRegAlloc();
}
void WebAssemblyPassConfig::addPreEmitPass() {
+ TargetPassConfig::addPreEmitPass();
+
// Put the CFG in structured form; insert BLOCK and LOOP markers.
addPass(createWebAssemblyCFGStackify());
More information about the llvm-commits
mailing list