summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-04-06 02:46:04 +0000
committerMatthias Braun <matze@braunis.de>2016-04-06 02:46:04 +0000
commit3bb0fcc11874c1627453f6b1ce3c27b5ad265028 (patch)
treea6ebd33191a65022800f35c5de44ae328bc0f1ad /llvm/lib/CodeGen
parent6f2e37429af186069cb93a30b436cb567293f047 (diff)
downloadbcm5719-llvm-3bb0fcc11874c1627453f6b1ce3c27b5ad265028.tar.gz
bcm5719-llvm-3bb0fcc11874c1627453f6b1ce3c27b5ad265028.zip
LivePhysRegs: Remove redundant check
llvm-svn: 265509
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LivePhysRegs.cpp2
1 files changed, 1 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud