forked from OSchip/llvm-project
[Hexagon] Use symbolic name for subregister instead of hardcoded number
llvm-svn: 250849
This commit is contained in:
parent
0257905f27
commit
bfe8e92fd1
|
@ -180,7 +180,7 @@ bool HexagonPeephole::runOnMachineFunction(MachineFunction &MF) {
|
|||
unsigned DstReg = Dst.getReg();
|
||||
unsigned SrcReg = Src1.getReg();
|
||||
PeepholeDoubleRegsMap[DstReg] =
|
||||
std::make_pair(*&SrcReg, 1/*Hexagon::subreg_hireg*/);
|
||||
std::make_pair(*&SrcReg, Hexagon::subreg_hireg);
|
||||
}
|
||||
|
||||
// Look for P=NOT(P).
|
||||
|
|
Loading…
Reference in New Issue