[Hexagon] Use symbolic name for subregister instead of hardcoded number

llvm-svn: 250849
This commit is contained in:
Krzysztof Parzyszek 2015-10-20 19:26:36 +00:00
parent 0257905f27
commit bfe8e92fd1
1 changed files with 1 additions and 1 deletions

View File

@ -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).