[PATCH] D68330: NFC: directly return when CommonExitBlock != Succ
Aditya Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 2 05:13:18 PDT 2019
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL373456: NFC: directly return when CommonExitBlock != Succ (authored by hiraditya, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D68330?vs=222805&id=222806#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68330/new/
https://reviews.llvm.org/D68330
Files:
llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
Index: llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
+++ llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
@@ -293,10 +293,8 @@
CommonExitBlock = Succ;
continue;
}
- if (CommonExitBlock == Succ)
- continue;
-
- return true;
+ if (CommonExitBlock != Succ)
+ return true;
}
return false;
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68330.222806.patch
Type: text/x-patch
Size: 482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191002/9ae7407a/attachment.bin>
More information about the llvm-commits
mailing list