From: Heejin Ahn Date: Wed, 26 Dec 2018 22:33:35 +0000 (+0000) Subject: [WebAssembly] Delete an unnecessary line in RegStackify X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03b93e4a1a1000d36cbc6abb36d6e269c8f0d32a;p=llvm [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350076 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp b/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp index 3aeb2835302..ba69d6c5322 100644 --- a/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp +++ b/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.