File tree 1 file changed +7
-5
lines changed
llvm/lib/Target/WebAssembly
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -123,12 +123,14 @@ bool WebAssemblyDebugFixup::runOnMachineFunction(MachineFunction &MF) {
123
123
}
124
124
} else {
125
125
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
130
131
// 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.
132
134
if (MI.getOpcode () == WebAssembly::UNREACHABLE) {
133
135
Stack.clear ();
134
136
break ;
You can’t perform that action at this time.
0 commit comments