[PATCH] D157260: [X86][NFC]Remove dead code in IfConversion.cpp
Wang, Xin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 19:30:56 PDT 2023
XinWang10 updated this revision to Diff 548037.
XinWang10 added a comment.
- resolve comment
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157260/new/
https://reviews.llvm.org/D157260
Files:
llvm/lib/CodeGen/IfConversion.cpp
Index: llvm/lib/CodeGen/IfConversion.cpp
===================================================================
--- llvm/lib/CodeGen/IfConversion.cpp
+++ llvm/lib/CodeGen/IfConversion.cpp
@@ -541,13 +541,12 @@
RetVal = IfConvertTriangle(BBI, Kind);
LLVM_DEBUG(dbgs() << (RetVal ? "succeeded!" : "failed!") << "\n");
if (RetVal) {
- if (isFalse) {
- if (isRev) ++NumTriangleFRev;
- else ++NumTriangleFalse;
- } else {
- if (isRev) ++NumTriangleRev;
- else ++NumTriangle;
- }
+ if (isFalse)
+ ++NumTriangleFalse;
+ else if (isRev)
+ ++NumTriangleRev;
+ else
+ ++NumTriangle;
}
break;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157260.548037.patch
Type: text/x-patch
Size: 776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230808/d66ee300/attachment.bin>
More information about the llvm-commits
mailing list