OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc6e6a9
)
It's not safe to propagate implicit_def that defines part of a register.
author
Evan Cheng
<evan.cheng@apple.com>
Mon, 10 May 2010 21:25:30 +0000
(21:25 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Mon, 10 May 2010 21:25:30 +0000
(21:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103436
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/ProcessImplicitDefs.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/ProcessImplicitDefs.cpp
b/lib/CodeGen/ProcessImplicitDefs.cpp
index
d7179b3
..
75875d2
100644
(file)
--- a/
lib/CodeGen/ProcessImplicitDefs.cpp
+++ b/
lib/CodeGen/ProcessImplicitDefs.cpp
@@
-89,6
+89,8
@@
bool ProcessImplicitDefs::runOnMachineFunction(MachineFunction &fn) {
MachineInstr *MI = &*I;
++I;
if (MI->isImplicitDef()) {
+ if (MI->getOperand(0).getSubReg())
+ continue;
unsigned Reg = MI->getOperand(0).getReg();
ImpDefRegs.insert(Reg);
if (TargetRegisterInfo::isPhysicalRegister(Reg)) {