projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74a9c6d
)
[MachineBasicBlock] Fix a typo in function copySuccessor
author
Guozhi Wei
<carrot@google.com>
Tue, 15 Sep 2020 16:18:18 +0000
(09:18 -0700)
committer
Guozhi Wei
<carrot@google.com>
Tue, 15 Sep 2020 16:18:18 +0000
(09:18 -0700)
The condition used to decide if need to copy probability should be reversed.
Differential Revision: https://reviews.llvm.org/D87417
llvm/lib/CodeGen/MachineBasicBlock.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/MachineBasicBlock.cpp
b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index
b260af7
..
42d5199
100644
(file)
--- a/
llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/
llvm/lib/CodeGen/MachineBasicBlock.cpp
@@
-828,7
+828,7
@@
void MachineBasicBlock::replaceSuccessor(MachineBasicBlock *Old,
void MachineBasicBlock::copySuccessor(MachineBasicBlock *Orig,
succ_iterator I) {
- if (Orig->Probs.empty())
+ if (
!
Orig->Probs.empty())
addSuccessor(*I, Orig->getSuccProbability(I));
else
addSuccessorWithoutProb(*I);