projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba2dff0
)
[SchedDAGInstrs] Delete redundant contains(). NFC
author
Fangrui Song
<i@maskray.me>
Sun, 11 Oct 2020 22:51:55 +0000
(15:51 -0700)
committer
Fangrui Song
<i@maskray.me>
Mon, 12 Oct 2020 03:58:30 +0000
(20:58 -0700)
llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
index
10453c4
..
c47c8d7
100644
(file)
--- 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)