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

So we don't have to specify -enable-new-pm=0.
This commit is contained in:
Arthur Eubanks 2022-09-30 10:34:04 -07:00
parent a7264e5549
commit 865406d21e
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -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;