Skip to content

Commit 2f82662

Browse files
author
Kai Luo
authored
[PowerPC] Let base implementation decide if MI is rematerizable by default (#75772)
If MI is not PPC specific instructions, let base implementation decide if MI is rematerizable. This can fix failure in #75570 after #75271 .
1 parent 945c645 commit 2f82662

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/PowerPC/PPCInstrInfo.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,9 +1067,7 @@ bool PPCInstrInfo::isReallyTriviallyReMaterializable(
10671067
const MachineInstr &MI) const {
10681068
switch (MI.getOpcode()) {
10691069
default:
1070-
// This function should only be called for opcodes with the ReMaterializable
1071-
// flag set.
1072-
llvm_unreachable("Unknown rematerializable operation!");
1070+
// Let base implementaion decide.
10731071
break;
10741072
case PPC::LI:
10751073
case PPC::LI8:

0 commit comments

Comments
 (0)