aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-06-02 18:54:47 +0000
committerBob Wilson <bob.wilson@apple.com>2010-06-02 18:54:47 +0000
commit91a74da036d3a9442953ae1de3e797a50da4ccf0 (patch)
tree1bd1ac23af9b71ac5c6e35136a1c26002f71e08e /lib/CodeGen
parent20fae651816916000c47b78843f22fd259ba4216 (diff)
Rename canCombinedSubRegIndex method to something more grammatically correct
and tidy up the comment describing it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/TwoAddressInstructionPass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp
index f61dbc95d1..cd475cc0a9 100644
--- a/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -1185,8 +1185,8 @@ TwoAddressInstructionPass::CoalesceExtSubRegs(SmallVector<unsigned,4> &Srcs,
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),