LivePhysRegs: Remove redundant check
authorMatthias Braun <matze@braunis.de>
Wed, 6 Apr 2016 02:46:04 +0000 (02:46 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 6 Apr 2016 02:46:04 +0000 (02:46 +0000)
llvm-svn: 265509

llvm/lib/CodeGen/LivePhysRegs.cpp

index be8c02c..6cb3ee1 100644 (file)
@@ -57,7 +57,7 @@ void LivePhysRegs::stepBackward(const MachineInstr &MI) {
 
   // 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)