Skip to content

Commit

Permalink
Revert "[PowerPC] support register pressure reduction in machine comb…
Browse files Browse the repository at this point in the history
…iner."

This reverts commit 26a396c.

See https://reviews.llvm.org/D92071 for a description of the issue.
  • Loading branch information
tpopp committed Jan 18, 2021
1 parent aca240b commit 3bd2457
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 621 deletions.
5 changes: 0 additions & 5 deletions llvm/include/llvm/CodeGen/MachineCombinerPattern.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ enum class MachineCombinerPattern {
REASSOC_XY_AMM_BMM,
REASSOC_XMM_AMM_BMM,

// These are patterns matched by the PowerPC to reassociate FMA and FSUB to
// reduce register pressure.
REASSOC_XY_BCA,
REASSOC_XY_BAC,

// These are multiply-add patterns matched by the AArch64 machine combiner.
MULADDW_OP1,
MULADDW_OP2,
Expand Down
3 changes: 0 additions & 3 deletions llvm/lib/CodeGen/MachineCombiner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,6 @@ static CombinerObjective getCombinerObjective(MachineCombinerPattern P) {
case MachineCombinerPattern::REASSOC_XY_AMM_BMM:
case MachineCombinerPattern::REASSOC_XMM_AMM_BMM:
return CombinerObjective::MustReduceDepth;
case MachineCombinerPattern::REASSOC_XY_BCA:
case MachineCombinerPattern::REASSOC_XY_BAC:
return CombinerObjective::MustReduceRegisterPressure;
default:
return CombinerObjective::Default;
}
Expand Down
Loading

0 comments on commit 3bd2457

Please sign in to comment.