Skip to content

Commit 83db071

Browse files
lucas-ramiarsenm
andauthored
Update llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
Co-authored-by: Matt Arsenault <[email protected]>
1 parent 869d367 commit 83db071

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,8 +2062,7 @@ bool PreRARematStage::canIncreaseOccupancyOrReduceSpill() {
20622062
}
20632063

20642064
void PreRARematStage::rematerialize() {
2065-
const auto *TII =
2066-
static_cast<const SIInstrInfo *>(MF.getSubtarget().getInstrInfo());
2065+
const SIInstrInfo *TII = MF.getSubtarget<GCNSubtarget>().getInstrInfo();
20672066

20682067
// Collect regions whose RP changes in unpredictable way; we will have to
20692068
// fully recompute their RP after all rematerailizations.

0 commit comments

Comments
 (0)