Skip to content

Commit 92ace24

Browse files
committed
Rename -simplify-cfg to -jumpthread-simplify-cfg.
1 parent a4c78dc commit 92ace24

15 files changed

+18
-19
lines changed

include/swift/SILOptimizer/PassManager/Passes.def

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ PASS(IVInfoPrinter, "iv-info-printer",
162162
"Print Induction Variable Information for Testing")
163163
PASS(InstCount, "inst-count",
164164
"Record SIL Instruction, Block, and Function Counts as LLVM Statistics")
165-
PASS(JumpThreadSimplifyCFG, "simplify-cfg",
165+
PASS(JumpThreadSimplifyCFG, "jumpthread-simplify-cfg",
166166
"Simplify CFG via Jump Threading")
167167
PASS(LetPropertiesOpt, "let-properties-opt",
168168
"Let Property Optimization")
@@ -244,8 +244,7 @@ PASS(SROABBArgs, "sroa-bb-args",
244244
"Scalar Replacement of Aggregate SIL Block Arguments")
245245
PASS(SimplifyBBArgs, "simplify-bb-args",
246246
"SIL Block Argument Simplification")
247-
// TODO: Rename this command line string.
248-
PASS(SimplifyCFG, "normal-simplify-cfg",
247+
PASS(SimplifyCFG, "-simplify-cfg",
249248
"SIL CFG Simplification")
250249
PASS(SpeculativeDevirtualization, "specdevirt",
251250
"Speculative Devirtualization via Guarded Calls")

test/SILOptimizer/abcopts.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all -loop-rotate -dce -simplify-cfg -abcopts -enable-abcopts=1 %s | %FileCheck %s
2-
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all -loop-rotate -dce -simplify-cfg -abcopts -dce -enable-abcopts -enable-abc-hoisting %s | %FileCheck %s --check-prefix=HOIST
1+
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all -loop-rotate -dce -jumpthread-simplify-cfg -abcopts -enable-abcopts=1 %s | %FileCheck %s
2+
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all -loop-rotate -dce -jumpthread-simplify-cfg -abcopts -dce -enable-abcopts -enable-abc-hoisting %s | %FileCheck %s --check-prefix=HOIST
33
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all -abcopts %s | %FileCheck %s --check-prefix=RANGECHECK
44

55
sil_stage canonical

test/SILOptimizer/canonicalize_switch_enum.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -simplify-cfg | %FileCheck %s
1+
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -jumpthread-simplify-cfg | %FileCheck %s
22

33
import Builtin
44
import Swift

test/SILOptimizer/devirt_jump_thread.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -simplify-cfg -cse | %FileCheck %s
1+
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -jumpthread-simplify-cfg -cse | %FileCheck %s
22

33
// Check that jump-threading works for sequences of checked_cast_br instructions produced by the devirtualizer.
44
// This allows for simplifications of code like e.g. f.foo() + f.foo()

test/SILOptimizer/devirt_jump_thread_crasher.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -simplify-cfg | %FileCheck %s
1+
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -jumpthread-simplify-cfg | %FileCheck %s
22

33
// REQUIRES: objc_interop
44
// FIXME: this test relies on standard library implementation details that are

test/SILOptimizer/enum_jump_thread.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -simplify-cfg -cse | %FileCheck %s
1+
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -jumpthread-simplify-cfg -cse | %FileCheck %s
22

33
// Test if jump-threading is done to combine two enum instructions
44
// into a single block.

test/SILOptimizer/opened_archetype_operands_tracking.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -sil-inline-generics -enable-sil-verify-all %s -O | %FileCheck %s
2-
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -simplify-cfg -enable-sil-verify-all %s -O | %FileCheck --check-prefix=CHECK-SIMPLIFY-CFG %s
2+
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -jumpthread-simplify-cfg -enable-sil-verify-all %s -O | %FileCheck --check-prefix=CHECK-SIMPLIFY-CFG %s
33

44
// Check some corner cases related to tracking of opened archetypes.
55
// For example, the compiler used to crash compiling the "process" function (rdar://28024272)

test/SILOptimizer/sil_combine_enum_addr.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -sil-combine -simplify-cfg | %FileCheck %s
1+
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -sil-combine -jumpthread-simplify-cfg | %FileCheck %s
22

33
sil_stage canonical
44

test/SILOptimizer/simplify_cfg.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -simplify-cfg | %FileCheck %s
1+
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -jumpthread-simplify-cfg | %FileCheck %s
22
// FIXME: Update for select_enum change.
33

44
import Builtin

test/SILOptimizer/simplify_cfg_and_combine.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -simplify-cfg -sil-combine -simplify-cfg -sil-combine | %FileCheck %s
1+
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -enable-sil-verify-all %s -jumpthread-simplify-cfg -sil-combine -jumpthread-simplify-cfg -sil-combine | %FileCheck %s
22

33
// These require both SimplifyCFG and SILCombine
44

0 commit comments

Comments
 (0)