diff options
author | Heejin Ahn <aheejin@gmail.com> | 2018-12-26 22:33:35 +0000 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2018-12-26 22:33:35 +0000 |
commit | ce1d50f9d77c3aeac239c5877b02a96bcc2828b9 (patch) | |
tree | 7f859f8961ad387079b267b689807755e97abf12 /llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp | |
parent | 99d39463987251cd85d3b7abe8eec02bcea10686 (diff) | |
download | llvm-ce1d50f9d77c3aeac239c5877b02a96bcc2828b9.zip llvm-ce1d50f9d77c3aeac239c5877b02a96bcc2828b9.tar.gz llvm-ce1d50f9d77c3aeac239c5877b02a96bcc2828b9.tar.bz2 |
[WebAssembly] Delete an unnecessary line in RegStackify
`OneUseInst` is set outside of the loop before and `OneUse` does not
change throughout the loop, so this line is not necessary.
llvm-svn: 350076
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp index 3aeb283..ba69d6c 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp @@ -414,7 +414,6 @@ static bool OneUseDominatesOtherUses(unsigned Reg, const MachineOperand &OneUse, if (UseVNI != OneUseVNI) continue; - const MachineInstr *OneUseInst = OneUse.getParent(); if (UseInst == OneUseInst) { // Another use in the same instruction. We need to ensure that the one // selected use happens "before" it. |