From ce1d50f9d77c3aeac239c5877b02a96bcc2828b9 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Wed, 26 Dec 2018 22:33:35 +0000 Subject: [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 --- llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp') 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. -- cgit v1.1