[llvm] r265509 - LivePhysRegs: Remove redundant check

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 5 19:46:22 PDT 2016


Author: matze
Date: Tue Apr  5 21:46:04 2016
New Revision: 265509

URL: http://llvm.org/viewvc/llvm-project?rev=265509&view=rev
Log:
LivePhysRegs: Remove redundant check

Modified:
    llvm/trunk/lib/CodeGen/LivePhysRegs.cpp

Modified: llvm/trunk/lib/CodeGen/LivePhysRegs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LivePhysRegs.cpp?rev=265509&r1=265508&r2=265509&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LivePhysRegs.cpp (original)
+++ llvm/trunk/lib/CodeGen/LivePhysRegs.cpp Tue Apr  5 21:46:04 2016
@@ -57,7 +57,7 @@ void LivePhysRegs::stepBackward(const Ma
 
   // Add uses to the set.
   for (ConstMIBundleOperands O(MI); O.isValid(); ++O) {
-    if (!O->isReg() || !O->readsReg() || O->isUndef())
+    if (!O->isReg() || !O->readsReg())
       continue;
     unsigned Reg = O->getReg();
     if (Reg == 0)




More information about the llvm-commits mailing list