[llvm] 4f8b2ff - [DAG] Use break instead of continue to leave do while (false) loop (NFC) (#97966)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 09:51:09 PDT 2024
Author: AtariDreams
Date: 2024-07-10T20:51:06+04:00
New Revision: 4f8b2fff6df74df4a2736630148e7c29a566bb06
URL: https://github.com/llvm/llvm-project/commit/4f8b2fff6df74df4a2736630148e7c29a566bb06
DIFF: https://github.com/llvm/llvm-project/commit/4f8b2fff6df74df4a2736630148e7c29a566bb06.diff
LOG: [DAG] Use break instead of continue to leave do while (false) loop (NFC) (#97966)
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index b13f6bcf3ebc1..428cdda21cd41 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -18982,19 +18982,19 @@ SDValue DAGCombiner::ForwardStoreValueToDirectLoad(LoadSDNode *LD) {
// Truncate Value To Stored Memory Size.
do {
if (!getTruncatedStoreValue(ST, Val))
- continue;
+ break;
if (!isTypeLegal(LDMemType))
- continue;
+ break;
if (STMemType != LDMemType) {
// TODO: Support vectors? This requires extract_subvector/bitcast.
if (!STMemType.isVector() && !LDMemType.isVector() &&
STMemType.isInteger() && LDMemType.isInteger())
Val = DAG.getNode(ISD::TRUNCATE, SDLoc(LD), LDMemType, Val);
else
- continue;
+ break;
}
if (!extendLoadedValueToExtension(LD, Val))
- continue;
+ break;
return ReplaceLd(LD, Val, Chain);
} while (false);
More information about the llvm-commits
mailing list