diff options
author | Heejin Ahn <aheejin@gmail.com> | 2018-12-29 02:42:04 +0000 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2018-12-29 02:42:04 +0000 |
commit | 4d98dfb67d3df4424f4ffc0dfff3105b946b6443 (patch) | |
tree | b559644675085ea23cbccb9ea87d57cfd547c7f5 /llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp | |
parent | b3e902f4c38bc5f4a398f474fbe37a8f44fb4d34 (diff) | |
download | bcm5719-llvm-4d98dfb67d3df4424f4ffc0dfff3105b946b6443.tar.gz bcm5719-llvm-4d98dfb67d3df4424f4ffc0dfff3105b946b6443.zip |
[WebAssembly] Fix comments in ExplicitLocals (NFC)
llvm-svn: 350144
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp index 384c0d60db5..92cf7f38efa 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp @@ -234,7 +234,7 @@ bool WebAssemblyExplicitLocals::runOnMachineFunction(MachineFunction &MF) { continue; // Replace tee instructions with tee_local. The difference is that tee - // instructins have two defs, while tee_local instructions have one def + // instructions have two defs, while tee_local instructions have one def // and an index of a local to write to. if (WebAssembly::isTee(MI)) { assert(MFI.isVRegStackified(MI.getOperand(0).getReg())); @@ -296,8 +296,9 @@ bool WebAssemblyExplicitLocals::runOnMachineFunction(MachineFunction &MF) { .addReg(NewReg); } MI.getOperand(0).setReg(NewReg); - // This register operand is now being used by the inserted drop - // instruction, so make it undead. + // This register operand of the original instruction is now being used + // by the inserted drop or set_local instruction, so make it not dead + // yet. MI.getOperand(0).setIsDead(false); MFI.stackifyVReg(NewReg); Changed = true; |