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:
714f241
)
[PowerPC] fix up in rL324229, NFC
author
Hiroshi Inoue
<inouehrs@jp.ibm.com>
Tue, 6 Feb 2018 11:34:16 +0000
(11:34 +0000)
committer
Hiroshi Inoue
<inouehrs@jp.ibm.com>
Tue, 6 Feb 2018 11:34:16 +0000
(11:34 +0000)
This patch fixes up my previous commit (add initialization of local variables).
llvm-svn: 324336
llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
b/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
index
e853a3c
..
ae9b8c5
100644
(file)
--- a/
llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
+++ b/
llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
@@
-535,7
+535,7
@@
bool PPCCTRLoops::convertToCTRLoop(Loop *L) {
if (!TI) continue;
if (BranchInst *BI = dyn_cast<BranchInst>(TI)) {
- uint64_t TrueWeight
, FalseWeight
;
+ uint64_t TrueWeight
= 0, FalseWeight = 0
;
if (!BI->isConditional() ||
!BI->extractProfMetadata(TrueWeight, FalseWeight))
continue;