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:
4c79864
)
[NFC][SimplifyCFG] SinkCommonCodeFromPredecessors(): add debug output when failing...
author
Roman Lebedev
<lebedev.ri@gmail.com>
Wed, 15 Jul 2020 20:48:31 +0000
(23:48 +0300)
committer
Roman Lebedev
<lebedev.ri@gmail.com>
Wed, 15 Jul 2020 21:21:55 +0000
(
00:21
+0300)
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index
74c7f0d
..
58995c4
100644
(file)
--- a/
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@
-1895,8
+1895,12
@@
static bool SinkCommonCodeFromPredecessors(BasicBlock *BB) {
break;
}
- if (!sinkLastInstruction(UnconditionalPreds))
+ if (!sinkLastInstruction(UnconditionalPreds)) {
+ LLVM_DEBUG(
+ dbgs()
+ << "SINK: stopping here, failed to actually sink instruction!\n");
return Changed;
+ }
NumSinkCommonInstrs++;
Changed = true;
}