[llvm] r250849 - [Hexagon] Use symbolic name for subregister instead of hardcoded number
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 20 12:26:36 PDT 2015
Author: kparzysz
Date: Tue Oct 20 14:26:36 2015
New Revision: 250849
URL: http://llvm.org/viewvc/llvm-project?rev=250849&view=rev
Log:
[Hexagon] Use symbolic name for subregister instead of hardcoded number
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonPeephole.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonPeephole.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonPeephole.cpp?rev=250849&r1=250848&r2=250849&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonPeephole.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonPeephole.cpp Tue Oct 20 14:26:36 2015
@@ -180,7 +180,7 @@ bool HexagonPeephole::runOnMachineFuncti
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).
More information about the llvm-commits
mailing list