Skip to content

Commit fef1bec

Browse files
authored
[X86]Remove X86-specific dead code in ScheduleDAGRRList.cpp (llvm#67629)
After patch llvm#67288 landed, unfoldMemoryOperand would not return NewMIs whose size ==3. So the removed line is useless.
1 parent d408770 commit fef1bec

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -986,11 +986,6 @@ SUnit *ScheduleDAGRRList::TryUnfoldSU(SUnit *SU) {
986986
if (!TII->unfoldMemoryOperand(*DAG, N, NewNodes))
987987
return nullptr;
988988

989-
// unfolding an x86 DEC64m operation results in store, dec, load which
990-
// can't be handled here so quit
991-
if (NewNodes.size() == 3)
992-
return nullptr;
993-
994989
assert(NewNodes.size() == 2 && "Expected a load folding node!");
995990

996991
N = NewNodes[1];

0 commit comments

Comments
 (0)