[llvm] cddb49b - [SchedDAGInstrs] Delete redundant contains(). NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 11 20:58:40 PDT 2020
Author: Fangrui Song
Date: 2020-10-11T20:58:30-07:00
New Revision: cddb49bcc0b2853f594e4245977f6c89c75384c8
URL: https://github.com/llvm/llvm-project/commit/cddb49bcc0b2853f594e4245977f6c89c75384c8
DIFF: https://github.com/llvm/llvm-project/commit/cddb49bcc0b2853f594e4245977f6c89c75384c8.diff
LOG: [SchedDAGInstrs] Delete redundant contains(). NFC
Added:
Modified:
llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
index 10453c4c7670..c47c8d744a01 100644
--- a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
@@ -241,8 +241,6 @@ void ScheduleDAGInstrs::addPhysRegDataDeps(SUnit *SU, unsigned OperIdx) {
!DefMIDesc->hasImplicitDefOfPhysReg(MO.getReg()));
for (MCRegAliasIterator Alias(MO.getReg(), TRI, true);
Alias.isValid(); ++Alias) {
- if (!Uses.contains(*Alias))
- continue;
for (Reg2SUnitsMap::iterator I = Uses.find(*Alias); I != Uses.end(); ++I) {
SUnit *UseSU = I->SU;
if (UseSU == SU)
More information about the llvm-commits
mailing list