From: Krzysztof Parzyszek Date: Tue, 20 Oct 2015 19:26:36 +0000 (+0000) Subject: [Hexagon] Use symbolic name for subregister instead of hardcoded number X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cdc93cb36f8e77f183ce60aecd359a2855e4cf3c;p=oota-llvm.git [Hexagon] Use symbolic name for subregister instead of hardcoded number git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250849 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Hexagon/HexagonPeephole.cpp b/lib/Target/Hexagon/HexagonPeephole.cpp index dca3121e00e..e68ff85b1da 100644 --- a/lib/Target/Hexagon/HexagonPeephole.cpp +++ b/lib/Target/Hexagon/HexagonPeephole.cpp @@ -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).