[llvm] r286293 - AArch64DeadRegisterDefinitionsPass: Fix Changed flag

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 8 12:59:03 PST 2016


Author: matze
Date: Tue Nov  8 14:59:03 2016
New Revision: 286293

URL: http://llvm.org/viewvc/llvm-project?rev=286293&view=rev
Log:
AArch64DeadRegisterDefinitionsPass: Fix Changed flag

Fix a bug in the calculation of the changed flag introduced in r285488.

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64DeadRegisterDefinitionsPass.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64DeadRegisterDefinitionsPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64DeadRegisterDefinitionsPass.cpp?rev=286293&r1=286292&r2=286293&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64DeadRegisterDefinitionsPass.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64DeadRegisterDefinitionsPass.cpp Tue Nov  8 14:59:03 2016
@@ -145,7 +145,6 @@ bool AArch64DeadRegisterDefinitions::run
     return false;
 
   TRI = MF.getSubtarget().getRegisterInfo();
-  bool Changed = false;
   DEBUG(dbgs() << "***** AArch64DeadRegisterDefinitions *****\n");
   Changed = false;
   for (auto &MBB : MF)




More information about the llvm-commits mailing list