Skip to content

Commit e9be355

Browse files
author
Krzysztof Parzyszek
committed
[Hexagon] Defs and clobbers can overlap
llvm-svn: 296365
1 parent 16b85a6 commit e9be355

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

llvm/lib/Target/Hexagon/HexagonBlockRanges.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,11 @@ void HexagonBlockRanges::computeInitialLiveRanges(InstrIndexMap &IndexMap,
362362
Clobbers.insert(R);
363363
}
364364
}
365-
#ifndef NDEBUG
365+
// Defs and clobbers can overlap, e.g.
366+
// %D0<def,dead> = COPY %vreg5, %R0<imp-def>, %R1<imp-def>
366367
for (RegisterRef R : Defs)
367-
assert(!Clobbers.count(R));
368-
for (RegisterRef R : Clobbers)
369-
assert(!Defs.count(R));
370-
#endif
368+
Clobbers.erase(R);
369+
371370
// Update maps for defs.
372371
for (RegisterRef S : Defs) {
373372
// Defs should already be expanded into subregs.

0 commit comments

Comments
 (0)