File tree Expand file tree Collapse file tree
llvm/lib/Target/WebAssembly Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,12 +123,14 @@ bool WebAssemblyDebugFixup::runOnMachineFunction(MachineFunction &MF) {
123123 }
124124 } else {
125125
126- // There is a WebAssembly Peephole optimisation can remove instructions before and after
127- // a wasm unreachable. This is a valid transformation because unreachable is "stack polymorphic",
128- // but stack polymorphism is not modeled in the llvm wasm backend.
129- // In current codegen, unreachable can only appear at the end of a basic block, and the stack is empty
126+ // There is a WebAssembly Peephole optimisation can remove instructions
127+ // before and after a wasm unreachable. This is a valid transformation
128+ // because unreachable is "stack polymorphic", but stack polymorphism is
129+ // not modeled in the llvm wasm backend. In current codegen, unreachable
130+ // can only appear at the end of a basic block, and the stack is empty
130131 // at the end of every basic block.
131- // So we can assume unreachable has stack-type [t*] -> [], and simply clear the stack.
132+ // So we can assume unreachable has stack-type [t*] -> [], and simply
133+ // clear the stack.
132134 if (MI.getOpcode () == WebAssembly::UNREACHABLE) {
133135 Stack.clear ();
134136 break ;
You can’t perform that action at this time.
0 commit comments