Skip to content

Commit

Permalink
[PowerPC] Let base implementation decide if MI is rematerizable by de…
Browse files Browse the repository at this point in the history
…fault (#75772)

If MI is not PPC specific instructions, let base implementation decide
if MI is rematerizable.
This can fix failure in #75570 after #75271 .
  • Loading branch information
Kai Luo committed Dec 18, 2023
1 parent 945c645 commit 2f82662
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1067,9 +1067,7 @@ bool PPCInstrInfo::isReallyTriviallyReMaterializable(
const MachineInstr &MI) const {
switch (MI.getOpcode()) {
default:
// This function should only be called for opcodes with the ReMaterializable
// flag set.
llvm_unreachable("Unknown rematerializable operation!");
// Let base implementaion decide.
break;
case PPC::LI:
case PPC::LI8:
Expand Down

0 comments on commit 2f82662

Please sign in to comment.