[llvm] r178854 - Buildbot fix for r178851: mistake was in wrong TargetRegisterInfo::getRegClass usage.
Stepan Dyatkovskiy
stpworld at narod.ru
Fri Apr 5 00:34:08 PDT 2013
Author: dyatkovskiy
Date: Fri Apr 5 02:34:08 2013
New Revision: 178854
URL: http://llvm.org/viewvc/llvm-project?rev=178854&view=rev
Log:
Buildbot fix for r178851: mistake was in wrong TargetRegisterInfo::getRegClass usage.
Modified:
llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp?rev=178854&r1=178853&r2=178854&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp Fri Apr 5 02:34:08 2013
@@ -103,7 +103,7 @@ namespace {
SmallVector<unsigned, 4> getUnitRegs(unsigned Reg) {
SmallVector<unsigned, 4> Res;
- const TargetRegisterClass* TRC = TRI->getRegClass(Reg);
+ const TargetRegisterClass* TRC = TRI->getMinimalPhysRegClass(Reg);
if (TRC == &ARM::QPRRegClass) {
if (Reg > ARM::Q7) {
Res.push_back(TRI->getSubReg(Reg, ARM::dsub_0));
More information about the llvm-commits
mailing list