mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-13 23:26:25 +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:
@@ -112,7 +112,7 @@ INITIALIZE_PASS(HexagonPeephole, "hexagon-peephole", "Hexagon Peephole",
|
|||||||
|
|
||||||
bool HexagonPeephole::runOnMachineFunction(MachineFunction &MF) {
|
bool HexagonPeephole::runOnMachineFunction(MachineFunction &MF) {
|
||||||
QII = static_cast<const HexagonInstrInfo *>(MF.getSubtarget().getInstrInfo());
|
QII = static_cast<const HexagonInstrInfo *>(MF.getSubtarget().getInstrInfo());
|
||||||
QRI = MF.getTarget().getSubtarget<HexagonSubtarget>().getRegisterInfo();
|
QRI = MF.getSubtarget<HexagonSubtarget>().getRegisterInfo();
|
||||||
MRI = &MF.getRegInfo();
|
MRI = &MF.getRegInfo();
|
||||||
|
|
||||||
DenseMap<unsigned, unsigned> PeepholeMap;
|
DenseMap<unsigned, unsigned> PeepholeMap;
|
||||||
|
Reference in New Issue
Block a user