mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Use the cached subtarget on the MachineFunction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227885 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c0663bab1a
commit
40445ad91f
@ -112,7 +112,7 @@ INITIALIZE_PASS(HexagonPeephole, "hexagon-peephole", "Hexagon Peephole",
|
||||
|
||||
bool HexagonPeephole::runOnMachineFunction(MachineFunction &MF) {
|
||||
QII = static_cast<const HexagonInstrInfo *>(MF.getSubtarget().getInstrInfo());
|
||||
QRI = MF.getTarget().getSubtarget<HexagonSubtarget>().getRegisterInfo();
|
||||
QRI = MF.getSubtarget<HexagonSubtarget>().getRegisterInfo();
|
||||
MRI = &MF.getRegInfo();
|
||||
|
||||
DenseMap<unsigned, unsigned> PeepholeMap;
|
||||
|
Loading…
Reference in New Issue
Block a user