projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27e4840
)
Continuously refine the register class of REG_SEQUENCE def with all the source regist...
author
Evan Cheng
<evan.cheng@apple.com>
Tue, 18 May 2010 20:07:47 +0000
(20:07 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Tue, 18 May 2010 20:07:47 +0000
(20:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104051
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/InstrEmitter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
b/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
index 2f8f255b5b55fd6eac51aef223a7d99010ec00f3..16eb8a72adc8920adcbda35b8ba7605eb84ad626 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/InstrEmitter.cpp
+++ b/
lib/CodeGen/SelectionDAG/InstrEmitter.cpp
@@
-551,11
+551,12
@@
void InstrEmitter::EmitRegSequence(SDNode *Node,
const TargetRegisterClass *TRC = MRI->getRegClass(SubReg);
const TargetRegisterClass *SRC =
TRI->getMatchingSuperRegClass(RC, TRC, SubIdx);
- //getSuperRegisterRegClass(TRC, SubIdx, Node->getValueType(0));
if (!SRC)
llvm_unreachable("Invalid subregister index in REG_SEQUENCE");
- if (SRC != RC)
+ if (SRC != RC)
{
MRI->setRegClass(NewVReg, SRC);
+ RC = SRC;
+ }
}
AddOperand(MI, Op, i+1, &II, VRBaseMap, /*IsDebug=*/false,
IsClone, IsCloned);