git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254096
91177308-0d34-0410-b5e6-
96231b3b80d8
void WebAssemblyPassConfig::addPreSched2() {}
void WebAssemblyPassConfig::addPreEmitPass() {
+ // Put the CFG in structured form; insert BLOCK and LOOP markers.
addPass(createWebAssemblyCFGStackify());
+
+ // Create a mapping from LLVM CodeGen virtual registers to wasm registers.
addPass(createWebAssemblyRegNumbering());
+
+ // Perform the very last peephole optimizations on the code.
addPass(createWebAssemblyPeephole());
}