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:
d8f2872
)
Simplify code. NFC.
author
Chad Rosier
<mcrosier@codeaurora.org>
Fri, 25 Sep 2015 20:20:22 +0000
(20:20 +0000)
committer
Chad Rosier
<mcrosier@codeaurora.org>
Fri, 25 Sep 2015 20:20:22 +0000
(20:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248610
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AggressiveAntiDepBreaker.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AggressiveAntiDepBreaker.cpp
b/lib/CodeGen/AggressiveAntiDepBreaker.cpp
index bba8f511dc9b93523a9fa60d7305747f418ef8dc..7eac7ce163fa246b503d3967bcc607d507c8976f 100644
(file)
--- a/
lib/CodeGen/AggressiveAntiDepBreaker.cpp
+++ b/
lib/CodeGen/AggressiveAntiDepBreaker.cpp
@@
-224,12
+224,7
@@
bool AggressiveAntiDepBreaker::IsImplicitDefUse(MachineInstr *MI,
if (Reg == 0)
return false;
- MachineOperand *Op = nullptr;
- if (MO.isDef())
- Op = MI->findRegisterUseOperand(Reg, true);
- else
- Op = MI->findRegisterDefOperand(Reg);
-
+ MachineOperand *Op = MI->findRegisterUseOperand(Reg, /*isKill=*/MO.isDef());
return(Op && Op->isImplicit());
}