Rename canCombinedSubRegIndex method to something more grammatically correct
and tidy up the comment describing it.
llvm-svn: 105339
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index f61dbc9..cd475cc 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -1185,8 +1185,8 @@
std::sort(SubIndices.begin(), SubIndices.end());
unsigned NewSubIdx = 0;
- if (TRI->canCombinedSubRegIndex(MRI->getRegClass(SrcReg), SubIndices,
- NewSubIdx)) {
+ if (TRI->canCombineSubRegIndices(MRI->getRegClass(SrcReg), SubIndices,
+ NewSubIdx)) {
bool Proceed = true;
if (NewSubIdx)
for (MachineRegisterInfo::reg_iterator RI = MRI->reg_begin(SrcReg),