[llvm] r295856 - [RDF] Skip undef uses when calculating kill flags
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 22 10:29:16 PST 2017
Author: kparzysz
Date: Wed Feb 22 12:29:16 2017
New Revision: 295856
URL: http://llvm.org/viewvc/llvm-project?rev=295856&view=rev
Log:
[RDF] Skip undef uses when calculating kill flags
Modified:
llvm/trunk/lib/Target/Hexagon/RDFLiveness.cpp
Modified: llvm/trunk/lib/Target/Hexagon/RDFLiveness.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/RDFLiveness.cpp?rev=295856&r1=295855&r2=295856&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/RDFLiveness.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/RDFLiveness.cpp Wed Feb 22 12:29:16 2017
@@ -801,7 +801,7 @@ void Liveness::resetKills(MachineBasicBl
Live.reset(*SR);
}
for (auto &Op : MI->operands()) {
- if (!Op.isReg() || !Op.isUse())
+ if (!Op.isReg() || !Op.isUse() || Op.isUndef())
continue;
unsigned R = Op.getReg();
if (!TargetRegisterInfo::isPhysicalRegister(R))
More information about the llvm-commits
mailing list