Skip to content

Commit

Permalink
[RISCV] Remove getPostRAMutations (#117527)
Browse files Browse the repository at this point in the history
We are using `PostMachineScheduler` instead of `PostRAScheduler`
since #68696.

The hook `getPostRAMutations` is only used in `PostRAScheduler` so
it is actually dead code for RISC-V now.
  • Loading branch information
wangpc-pp authored Nov 26, 2024
1 parent dd7aabf commit 6633916
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions llvm/lib/Target/RISCV/RISCVSubtarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,6 @@ bool RISCVSubtarget::useRVVForFixedLengthVectors() const {

bool RISCVSubtarget::enableSubRegLiveness() const { return true; }

void RISCVSubtarget::getPostRAMutations(
std::vector<std::unique_ptr<ScheduleDAGMutation>> &Mutations) const {
Mutations.push_back(createMacroFusionDAGMutation(getMacroFusions()));
}

/// Enable use of alias analysis during code generation (during MI
/// scheduling, DAGCombine, etc.).
bool RISCVSubtarget::useAA() const { return UseAA; }
Expand Down
3 changes: 0 additions & 3 deletions llvm/lib/Target/RISCV/RISCVSubtarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,6 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {

bool enableSubRegLiveness() const override;

void getPostRAMutations(std::vector<std::unique_ptr<ScheduleDAGMutation>>
&Mutations) const override;

bool useAA() const override;

unsigned getCacheLineSize() const override {
Expand Down

0 comments on commit 6633916

Please sign in to comment.