[WebAssembly] Add some comments. NFC.

llvm-svn: 254096
This commit is contained in:
Dan Gohman 2015-11-25 21:32:06 +00:00
parent 7ed6b2f414
commit 5941bde03c
1 changed files with 5 additions and 0 deletions

View File

@ -187,7 +187,12 @@ void WebAssemblyPassConfig::addPostRegAlloc() {
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());
}