From 3bb0fcc11874c1627453f6b1ce3c27b5ad265028 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 6 Apr 2016 02:46:04 +0000 Subject: LivePhysRegs: Remove redundant check llvm-svn: 265509 --- llvm/lib/CodeGen/LivePhysRegs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/LivePhysRegs.cpp b/llvm/lib/CodeGen/LivePhysRegs.cpp index be8c02c212e..6cb3ee15a79 100644 --- a/llvm/lib/CodeGen/LivePhysRegs.cpp +++ b/llvm/lib/CodeGen/LivePhysRegs.cpp @@ -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) -- cgit v1.2.3