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:
9c4f0d8
)
[LoopDeletion] Simplify. NFC
author
Fangrui Song
<i@maskray.me>
Tue, 14 Feb 2023 06:49:09 +0000
(22:49 -0800)
committer
Fangrui Song
<i@maskray.me>
Tue, 14 Feb 2023 06:49:09 +0000
(22:49 -0800)
llvm/lib/Transforms/Scalar/LoopDeletion.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
index
7e4dbac
..
42fc69a
100644
(file)
--- a/
llvm/lib/Transforms/Scalar/LoopDeletion.cpp
+++ b/
llvm/lib/Transforms/Scalar/LoopDeletion.cpp
@@
-73,7
+73,7
@@
static bool isLoopDead(Loop *L, ScalarEvolution &SE,
// of the loop.
bool AllEntriesInvariant = true;
bool AllOutgoingValuesSame = true;
- if (
!L->hasNoExitBlocks()
) {
+ if (
ExitBlock
) {
for (PHINode &P : ExitBlock->phis()) {
Value *incoming = P.getIncomingValueForBlock(ExitingBlocks[0]);