[PATCH] D157260: [X86][NFC]Remove dead code in IfConversion.cpp

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 23:50:10 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGf4a6038e8065: [X86][NFC]Remove dead code in IfConversion.cpp (authored by XinWang10, committed by xin10.wang <wangxin8 at scsel-icx-03.sc.intel.com>).

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.548077.patch
Type: text/x-patch
Size: 776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230808/7e847069/attachment.bin>


More information about the llvm-commits mailing list