[llvm] 865406d - [FixIrreducible][opt] Mark -fix-irreducible as a codegen pass

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 30 10:34:52 PDT 2022


Author: Arthur Eubanks
Date: 2022-09-30T10:34:04-07:00
New Revision: 865406d21ec420424e58d30bb6ec02d5efc839c2

URL: https://github.com/llvm/llvm-project/commit/865406d21ec420424e58d30bb6ec02d5efc839c2
DIFF: https://github.com/llvm/llvm-project/commit/865406d21ec420424e58d30bb6ec02d5efc839c2.diff

LOG: [FixIrreducible][opt] Mark -fix-irreducible as a codegen pass

So we don't have to specify -enable-new-pm=0.

Added: 
    

Modified: 
    llvm/test/Transforms/FixIrreducible/switch.ll
    llvm/tools/opt/opt.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/FixIrreducible/switch.ll b/llvm/test/Transforms/FixIrreducible/switch.ll
index f7a00a261c57a..efa4310912522 100644
--- a/llvm/test/Transforms/FixIrreducible/switch.ll
+++ b/llvm/test/Transforms/FixIrreducible/switch.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -fix-irreducible -enable-new-pm=0 -S | FileCheck %s
+; RUN: opt < %s -fix-irreducible -S | FileCheck %s
 
 define void @loop_1(i32 %Value, i1 %PredEntry, i1 %PredD) {
 ; CHECK-LABEL: @loop_1(

diff  --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index 9fee75d3d5d02..acdddc5776726 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -456,7 +456,7 @@ static bool shouldPinPassToLegacyPM(StringRef Pass) {
       "dot-regions",          "dot-regions-only",
       "view-regions",         "view-regions-only",
       "select-optimize",      "expand-large-div-rem",
-      "structurizecfg"};
+      "structurizecfg",       "fix-irreducible"};
   for (const auto &P : PassNamePrefix)
     if (Pass.startswith(P))
       return true;


        


More information about the llvm-commits mailing list