diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2023-06-21 10:20:20 -0400 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2023-06-21 10:30:43 -0400 |
| commit | 80e2c26dfdd2e5ab1bbbf747ebff8c316399653c (patch) | |
| tree | 183e48bc904683d3f96896cd4a5f75f1fedf29ec | |
| parent | c4fea3905617af89d1ad87319893e250f5b72dd6 (diff) | |
RegisterCoalescer: Fix name of pass
I finally snapped and fixed this inconsistency.
82 files changed, 102 insertions, 102 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp index 4fc1d3ebc8d9..d1793015ae44 100644 --- a/llvm/lib/CodeGen/RegisterCoalescer.cpp +++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp @@ -398,14 +398,14 @@ char RegisterCoalescer::ID = 0; char &llvm::RegisterCoalescerID = RegisterCoalescer::ID; -INITIALIZE_PASS_BEGIN(RegisterCoalescer, "simple-register-coalescing", - "Simple Register Coalescing", false, false) +INITIALIZE_PASS_BEGIN(RegisterCoalescer, "register-coalescer", + "Register Coalescer", false, false) INITIALIZE_PASS_DEPENDENCY(LiveIntervals) INITIALIZE_PASS_DEPENDENCY(SlotIndexes) INITIALIZE_PASS_DEPENDENCY(MachineLoopInfo) INITIALIZE_PASS_DEPENDENCY(AAResultsWrapperPass) -INITIALIZE_PASS_END(RegisterCoalescer, "simple-register-coalescing", - "Simple Register Coalescing", false, false) +INITIALIZE_PASS_END(RegisterCoalescer, "register-coalescer", + "Register Coalescer", false, false) [[nodiscard]] static bool isMoveInstr(const TargetRegisterInfo &tri, const MachineInstr *MI, Register &Src, @@ -4093,7 +4093,7 @@ void RegisterCoalescer::releaseMemory() { } bool RegisterCoalescer::runOnMachineFunction(MachineFunction &fn) { - LLVM_DEBUG(dbgs() << "********** SIMPLE REGISTER COALESCING **********\n" + LLVM_DEBUG(dbgs() << "********** REGISTER COALESCER **********\n" << "********** Function: " << fn.getName() << '\n'); // Variables changed between a setjmp and a longjump can have undefined value diff --git a/llvm/test/CodeGen/AArch64/O3-pipeline.ll b/llvm/test/CodeGen/AArch64/O3-pipeline.ll index f6f98f9250bd..92004996297d 100644 --- a/llvm/test/CodeGen/AArch64/O3-pipeline.ll +++ b/llvm/test/CodeGen/AArch64/O3-pipeline.ll @@ -160,7 +160,7 @@ ; CHECK-NEXT: MachineDominator Tree Construction ; CHECK-NEXT: Slot index numbering ; CHECK-NEXT: Live Interval Analysis -; CHECK-NEXT: Simple Register Coalescing +; CHECK-NEXT: Register Coalescer ; CHECK-NEXT: Rename Disconnected Subregister Components ; CHECK-NEXT: Machine Instruction Scheduler ; CHECK-NEXT: Machine Block Frequency Analysis diff --git a/llvm/test/CodeGen/AArch64/aarch64-mov-debug-locs.mir b/llvm/test/CodeGen/AArch64/aarch64-mov-debug-locs.mir index 6e444373047e..3ff117f58aa7 100644 --- a/llvm/test/CodeGen/AArch64/aarch64-mov-debug-locs.mir +++ b/llvm/test/CodeGen/AArch64/aarch64-mov-debug-locs.mir @@ -4,7 +4,7 @@ # # This test is for the problem from https://bugs.llvm.org/show_bug.cgi?id=38714. # -# Specifically, Simple Register Coalescing creates following conversion : +# Specifically, Register Coalescer creates following conversion : # # undef %0.sub_32:gpr64 = ORRWrs $wzr, %3:gpr32common, 0, debug-location !24; # diff --git a/llvm/test/CodeGen/AArch64/regcoal-physreg.mir b/llvm/test/CodeGen/AArch64/regcoal-physreg.mir index 270abeec822c..d5e4742c3ffa 100644 --- a/llvm/test/CodeGen/AArch64/regcoal-physreg.mir +++ b/llvm/test/CodeGen/AArch64/regcoal-physreg.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=aarch64-apple-ios -run-pass=simple-register-coalescing -verify-machineinstrs %s -o - | FileCheck %s +# RUN: llc -mtriple=aarch64-apple-ios -run-pass=register-coalescer -verify-machineinstrs %s -o - | FileCheck %s --- | declare void @f2() diff --git a/llvm/test/CodeGen/AArch64/zext-reg-coalesce.mir b/llvm/test/CodeGen/AArch64/zext-reg-coalesce.mir index 85f6cbafd603..f7b90868b282 100644 --- a/llvm/test/CodeGen/AArch64/zext-reg-coalesce.mir +++ b/llvm/test/CodeGen/AArch64/zext-reg-coalesce.mir @@ -1,5 +1,5 @@ # RUN: llc -mtriple=aarch64-arm-none-eabi -o - %s \ -# RUN: -run-pass simple-register-coalescing | FileCheck %s +# RUN: -run-pass register-coalescer | FileCheck %s # In this test case, the 32-bit copy implements a 32 to 64 bit zero extension # and relies on the upper 32 bits being zeroed. diff --git a/llvm/test/CodeGen/AMDGPU/coalesce-identity-copies-undef-subregs.mir b/llvm/test/CodeGen/AMDGPU/coalesce-identity-copies-undef-subregs.mir index a480202e166f..263d68294cd0 100644 --- a/llvm/test/CodeGen/AMDGPU/coalesce-identity-copies-undef-subregs.mir +++ b/llvm/test/CodeGen/AMDGPU/coalesce-identity-copies-undef-subregs.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx906 -verify-coalescing -verify-machineinstrs -start-before=simple-register-coalescing -stop-after=machine-scheduler -o - %s | FileCheck %s +# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx906 -verify-coalescing -verify-machineinstrs -start-before=register-coalescer -stop-after=machine-scheduler -o - %s | FileCheck %s # Tests that break due to the handling of partially undef registers # when whole register identity copies are erased. diff --git a/llvm/test/CodeGen/AMDGPU/coalesce-into-dead-subreg-copies.mir b/llvm/test/CodeGen/AMDGPU/coalesce-into-dead-subreg-copies.mir index fba3231ecfdf..45ccb4b8866e 100644 --- a/llvm/test/CodeGen/AMDGPU/coalesce-into-dead-subreg-copies.mir +++ b/llvm/test/CodeGen/AMDGPU/coalesce-into-dead-subreg-copies.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-coalescing -run-pass=simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-coalescing -run-pass=register-coalescer -o - %s | FileCheck %s # Check that there's no "Live segment doesn't end at a valid # instruction" failure after coalescing %0 into %2, which is diff --git a/llvm/test/CodeGen/AMDGPU/coalesce-liveout-undef-copy.mir b/llvm/test/CodeGen/AMDGPU/coalesce-liveout-undef-copy.mir index e454077655b1..1f235ebccfa3 100644 --- a/llvm/test/CodeGen/AMDGPU/coalesce-liveout-undef-copy.mir +++ b/llvm/test/CodeGen/AMDGPU/coalesce-liveout-undef-copy.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-coalescing -run-pass=simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-coalescing -run-pass=register-coalescer -o - %s | FileCheck %s # %2 has an undef read in %bb.3, and this IR wouldn't be valid if it # was a real read. After merging %2 into %0, we need to replace the diff --git a/llvm/test/CodeGen/AMDGPU/coalescer-early-clobber-subreg.mir b/llvm/test/CodeGen/AMDGPU/coalescer-early-clobber-subreg.mir index 78e5de1b18dd..020e2de6d2b7 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescer-early-clobber-subreg.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescer-early-clobber-subreg.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -march=amdgcn -verify-machineinstrs -run-pass=simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc -march=amdgcn -verify-machineinstrs -run-pass=register-coalescer -o - %s | FileCheck %s # Test used to crash with message: # JoinVals::computeAssignment(unsigned int, (anonymous namespace)::JoinVals &): Assertion `Assignments[ValNo] != -1 && "Bad recursion?"' failed. diff --git a/llvm/test/CodeGen/AMDGPU/coalescer-extend-pruned-subrange.mir b/llvm/test/CodeGen/AMDGPU/coalescer-extend-pruned-subrange.mir index 872959638cb6..26723e195957 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescer-extend-pruned-subrange.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescer-extend-pruned-subrange.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx803 -run-pass=simple-register-coalescing -o - %s | FileCheck -check-prefix=GCN %s +# RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx803 -run-pass=register-coalescer -o - %s | FileCheck -check-prefix=GCN %s # GCN: {{^body}} diff --git a/llvm/test/CodeGen/AMDGPU/coalescer-identical-values-undef.mir b/llvm/test/CodeGen/AMDGPU/coalescer-identical-values-undef.mir index 280c82b3352c..0d9987e45bdf 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescer-identical-values-undef.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescer-identical-values-undef.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=amdgcn--amdpal -run-pass=simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc -mtriple=amdgcn--amdpal -run-pass=register-coalescer -o - %s | FileCheck %s # Check that this doesn't crash. Check for some legitimate output. # CHECK: S_CBRANCH_SCC1 diff --git a/llvm/test/CodeGen/AMDGPU/coalescer-remat-dead-use.mir b/llvm/test/CodeGen/AMDGPU/coalescer-remat-dead-use.mir index 0bfeffddc2f1..fe8fd03bf2a0 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescer-remat-dead-use.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescer-remat-dead-use.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -march=amdgcn -mcpu=gfx900 -o - -verify-coalescing -run-pass=simple-register-coalescing %s | FileCheck -check-prefix=GCN %s +# RUN: llc -march=amdgcn -mcpu=gfx900 -o - -verify-coalescing -run-pass=register-coalescer %s | FileCheck -check-prefix=GCN %s --- # Do not rematerialize V_MOV_B32 at COPY because source register %1 is killed. diff --git a/llvm/test/CodeGen/AMDGPU/coalescer-removepartial-extend-undef-subrange.mir b/llvm/test/CodeGen/AMDGPU/coalescer-removepartial-extend-undef-subrange.mir index c77ce31b1260..64634af0a1e9 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescer-removepartial-extend-undef-subrange.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescer-removepartial-extend-undef-subrange.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass simple-register-coalescing -verify-machineinstrs -o - %s | FileCheck %s +# RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass register-coalescer -verify-machineinstrs -o - %s | FileCheck %s # # The failure occurs when the coalescer tries to removePartialRedundency() on the # "%2:vreg_64 = COPY %3" in bb.1. The coalescer tries to prune and extend each diff --git a/llvm/test/CodeGen/AMDGPU/coalescer-subranges-another-copymi-not-live.mir b/llvm/test/CodeGen/AMDGPU/coalescer-subranges-another-copymi-not-live.mir index a077e67877bd..c656de046fd7 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescer-subranges-another-copymi-not-live.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescer-subranges-another-copymi-not-live.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx803 -run-pass=simple-register-coalescing -o - %s | FileCheck -check-prefix=GCN %s +# RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx803 -run-pass=register-coalescer -o - %s | FileCheck -check-prefix=GCN %s # With one version of the D48102 fix, this test failed with # Assertion failed: (ValNo && "CopyMI input register not live"), function reMaterializeTrivialDef, file ../lib/CodeGen/RegisterCoalescer.cpp, line 1107. diff --git a/llvm/test/CodeGen/AMDGPU/coalescer-subranges-another-prune-error.mir b/llvm/test/CodeGen/AMDGPU/coalescer-subranges-another-prune-error.mir index 0fc299dae85d..ac4f83b0a01f 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescer-subranges-another-prune-error.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescer-subranges-another-prune-error.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx803 -run-pass=simple-register-coalescing -o - %s | FileCheck -check-prefix=GCN %s +# RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx803 -run-pass=register-coalescer -o - %s | FileCheck -check-prefix=GCN %s # With one version of the D48102 fix, this test failed with # Assertion failed: (Id != S.end() && T != S.end() && T->valno == Id->valno), function pruneSubRegValues, file ../lib/CodeGen/RegisterCoalescer.cpp, line 2875. diff --git a/llvm/test/CodeGen/AMDGPU/coalescer-subranges-prune-kill-copy.mir b/llvm/test/CodeGen/AMDGPU/coalescer-subranges-prune-kill-copy.mir index c7c78bcbb0b6..899f2c1892ff 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescer-subranges-prune-kill-copy.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescer-subranges-prune-kill-copy.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs -run-pass=simple-register-coalescing -o - %s | FileCheck -check-prefix=GCN %s +# RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs -run-pass=register-coalescer -o - %s | FileCheck -check-prefix=GCN %s # Test used to crash with message: # JoinVals::ConflictResolution (anonymous namespace)::JoinVals::analyzeValue(unsigned int, (anonymous namespace)::JoinVals &): Assertion `DefMI != nullptr' failed diff --git a/llvm/test/CodeGen/AMDGPU/coalescer-subreg-join.mir b/llvm/test/CodeGen/AMDGPU/coalescer-subreg-join.mir index 34f83b0ae2ec..317fbea3b7d4 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescer-subreg-join.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescer-subreg-join.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=amdgcn -run-pass simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc -march=amdgcn -run-pass register-coalescer -o - %s | FileCheck %s # Check that %11 and %20 have been coalesced. # CHECK: IMAGE_SAMPLE_C_D_O_V1_V11 %[[REG:[0-9]+]] # CHECK: IMAGE_SAMPLE_C_D_O_V1_V11 %[[REG]] diff --git a/llvm/test/CodeGen/AMDGPU/coalescer-subregjoin-fullcopy.mir b/llvm/test/CodeGen/AMDGPU/coalescer-subregjoin-fullcopy.mir index ad3143d6a805..3ab3e4f35f2b 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescer-subregjoin-fullcopy.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescer-subregjoin-fullcopy.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=amdgcn -run-pass simple-register-coalescing -verify-machineinstrs -o - %s | FileCheck --check-prefix=GCN %s +# RUN: llc -march=amdgcn -run-pass register-coalescer -verify-machineinstrs -o - %s | FileCheck --check-prefix=GCN %s # # See bug http://llvm.org/PR33152 for details of the bug this test is checking # for. diff --git a/llvm/test/CodeGen/AMDGPU/coalescer-with-subregs-bad-identical.mir b/llvm/test/CodeGen/AMDGPU/coalescer-with-subregs-bad-identical.mir index 65ca9cb06cfc..9d9fb5685fa4 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescer-with-subregs-bad-identical.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescer-with-subregs-bad-identical.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx803 -run-pass=simple-register-coalescing -o - %s | FileCheck -check-prefix=GCN %s +# RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx803 -run-pass=register-coalescer -o - %s | FileCheck -check-prefix=GCN %s # With one version of the D48102 fix, this test failed with # Assertion failed: (Id != S.end() && T != S.end() && T->valno == Id->valno), function pruneSubRegValues, file ../lib/CodeGen/RegisterCoalescer.cpp, line 2870. diff --git a/llvm/test/CodeGen/AMDGPU/coalescing-subreg-was-undef-but-became-def.mir b/llvm/test/CodeGen/AMDGPU/coalescing-subreg-was-undef-but-became-def.mir index 9f742041133e..19924024a00d 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescing-subreg-was-undef-but-became-def.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescing-subreg-was-undef-but-became-def.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -march=amdgcn -mcpu=gfx803 -run-pass simple-register-coalescing -verify-machineinstrs -o - %s | FileCheck %s +# RUN: llc -march=amdgcn -mcpu=gfx803 -run-pass register-coalescer -verify-machineinstrs -o - %s | FileCheck %s # # This is another example of a test giving "Couldn't join subrange!" # diff --git a/llvm/test/CodeGen/AMDGPU/coalescing-with-subregs-in-loop-bug.mir b/llvm/test/CodeGen/AMDGPU/coalescing-with-subregs-in-loop-bug.mir index 71e5ec7d52ed..e066a48d9a3c 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescing-with-subregs-in-loop-bug.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescing-with-subregs-in-loop-bug.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx803 -run-pass=simple-register-coalescing,rename-independent-subregs %s -o - | FileCheck -check-prefix=GCN %s +# RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx803 -run-pass=register-coalescer,rename-independent-subregs %s -o - | FileCheck -check-prefix=GCN %s # This test is for a bug where the following happens: # diff --git a/llvm/test/CodeGen/AMDGPU/coalescing_makes_lanes_undef.mir b/llvm/test/CodeGen/AMDGPU/coalescing_makes_lanes_undef.mir index 01b8401fa25d..eb0399cc81b2 100644 --- a/llvm/test/CodeGen/AMDGPU/coalescing_makes_lanes_undef.mir +++ b/llvm/test/CodeGen/AMDGPU/coalescing_makes_lanes_undef.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -march=amdgcn -mcpu=gfx803 -run-pass simple-register-coalescing -verify-machineinstrs -o - %s | FileCheck %s +# RUN: llc -march=amdgcn -mcpu=gfx803 -run-pass register-coalescer -verify-machineinstrs -o - %s | FileCheck %s # Register coalescer is going to eliminate %2:sgpr_32 = COPY %1.sub0 from bb.1 # by joining %2 and %1.sub0 into %0.sub0 register. Check that when this happen diff --git a/llvm/test/CodeGen/AMDGPU/couldnt-join-subrange-3.mir b/llvm/test/CodeGen/AMDGPU/couldnt-join-subrange-3.mir index 893355b552fa..4d06f4a19597 100644 --- a/llvm/test/CodeGen/AMDGPU/couldnt-join-subrange-3.mir +++ b/llvm/test/CodeGen/AMDGPU/couldnt-join-subrange-3.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx900 -run-pass simple-register-coalescing -verify-machineinstrs -o - %s | FileCheck -check-prefix GCN %s +# RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx900 -run-pass register-coalescer -verify-machineinstrs -o - %s | FileCheck -check-prefix GCN %s # --- name: _amdgpu_ps_main diff --git a/llvm/test/CodeGen/AMDGPU/dce-disjoint-intervals.mir b/llvm/test/CodeGen/AMDGPU/dce-disjoint-intervals.mir index bef24bcfa294..8dd5e239d94a 100644 --- a/llvm/test/CodeGen/AMDGPU/dce-disjoint-intervals.mir +++ b/llvm/test/CodeGen/AMDGPU/dce-disjoint-intervals.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=amdgcn-- -run-pass=liveintervals,dead-mi-elimination,simple-register-coalescing -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s +# RUN: llc -mtriple=amdgcn-- -run-pass=liveintervals,dead-mi-elimination,register-coalescer -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s # This is used to fail verififcation if MachineDCE tracks LIS. diff --git a/llvm/test/CodeGen/AMDGPU/limit-coalesce.mir b/llvm/test/CodeGen/AMDGPU/limit-coalesce.mir index c1896352ad87..c34787307537 100644 --- a/llvm/test/CodeGen/AMDGPU/limit-coalesce.mir +++ b/llvm/test/CodeGen/AMDGPU/limit-coalesce.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=amdgcn -run-pass simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc -march=amdgcn -run-pass register-coalescer -o - %s | FileCheck %s # Check that coalescer does not create wider register tuple than in source diff --git a/llvm/test/CodeGen/AMDGPU/llc-pipeline.ll b/llvm/test/CodeGen/AMDGPU/llc-pipeline.ll index 097f28e3fd8c..bb482dbd93a8 100644 --- a/llvm/test/CodeGen/AMDGPU/llc-pipeline.ll +++ b/llvm/test/CodeGen/AMDGPU/llc-pipeline.ll @@ -340,7 +340,7 @@ ; GCN-O1-NEXT: Slot index numbering ; GCN-O1-NEXT: Live Interval Analysis ; GCN-O1-NEXT: Machine Natural Loop Construction -; GCN-O1-NEXT: Simple Register Coalescing +; GCN-O1-NEXT: Register Coalescer ; GCN-O1-NEXT: Rename Disconnected Subregister Components ; GCN-O1-NEXT: Machine Instruction Scheduler ; GCN-O1-NEXT: MachinePostDominator Tree Construction @@ -638,7 +638,7 @@ ; GCN-O1-OPTS-NEXT: Slot index numbering ; GCN-O1-OPTS-NEXT: Live Interval Analysis ; GCN-O1-OPTS-NEXT: Machine Natural Loop Construction -; GCN-O1-OPTS-NEXT: Simple Register Coalescing +; GCN-O1-OPTS-NEXT: Register Coalescer ; GCN-O1-OPTS-NEXT: Rename Disconnected Subregister Components ; GCN-O1-OPTS-NEXT: AMDGPU Pre-RA optimizations ; GCN-O1-OPTS-NEXT: Machine Instruction Scheduler @@ -946,7 +946,7 @@ ; GCN-O2-NEXT: Slot index numbering ; GCN-O2-NEXT: Live Interval Analysis ; GCN-O2-NEXT: Machine Natural Loop Construction -; GCN-O2-NEXT: Simple Register Coalescing +; GCN-O2-NEXT: Register Coalescer ; GCN-O2-NEXT: Rename Disconnected Subregister Components ; GCN-O2-NEXT: AMDGPU Pre-RA optimizations ; GCN-O2-NEXT: Machine Instruction Scheduler @@ -1267,7 +1267,7 @@ ; GCN-O3-NEXT: Slot index numbering ; GCN-O3-NEXT: Live Interval Analysis ; GCN-O3-NEXT: Machine Natural Loop Construction -; GCN-O3-NEXT: Simple Register Coalescing +; GCN-O3-NEXT: Register Coalescer ; GCN-O3-NEXT: Rename Disconnected Subregister Components ; GCN-O3-NEXT: AMDGPU Pre-RA optimizations ; GCN-O3-NEXT: Machine Instruction Scheduler diff --git a/llvm/test/CodeGen/AMDGPU/regcoal-subrange-join-seg.mir b/llvm/test/CodeGen/AMDGPU/regcoal-subrange-join-seg.mir index 3ba8289ebdd8..9e0231853d69 100644 --- a/llvm/test/CodeGen/AMDGPU/regcoal-subrange-join-seg.mir +++ b/llvm/test/CodeGen/AMDGPU/regcoal-subrange-join-seg.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=amdgcn -run-pass simple-register-coalescing -o - %s | FileCheck --check-prefix=GCN %s +# RUN: llc -march=amdgcn -run-pass register-coalescer -o - %s | FileCheck --check-prefix=GCN %s # REQUIRES: asserts # # This test will provoke a Couldn't join subrange unreachable without the diff --git a/llvm/test/CodeGen/AMDGPU/regcoal-subrange-join.mir b/llvm/test/CodeGen/AMDGPU/regcoal-subrange-join.mir index 2e0a96027068..c07e4455f4d9 100644 --- a/llvm/test/CodeGen/AMDGPU/regcoal-subrange-join.mir +++ b/llvm/test/CodeGen/AMDGPU/regcoal-subrange-join.mir @@ -1,7 +1,7 @@ -# RUN: llc -march=amdgcn -run-pass simple-register-coalescing -o - %s | FileCheck --check-prefix=GCN %s +# RUN: llc -march=amdgcn -run-pass register-coalescer -o - %s | FileCheck --check-prefix=GCN %s # # See bug http://llvm.org/PR33524 for details of the problem being checked here -# This test will provoke a subrange join (see annotations below) during simple register coalescing +# This test will provoke a subrange join (see annotations below) during register coalescing # Without a fix for PR33524 this causes an unreachable in SubRange Join # # GCN-DAG: undef %[[REG0:[0-9]+]].sub0:sgpr_64 = COPY $sgpr5 diff --git a/llvm/test/CodeGen/AMDGPU/regcoalesce-cannot-join-failures.mir b/llvm/test/CodeGen/AMDGPU/regcoalesce-cannot-join-failures.mir index 1ac68c2778cc..9fec776df13f 100644 --- a/llvm/test/CodeGen/AMDGPU/regcoalesce-cannot-join-failures.mir +++ b/llvm/test/CodeGen/AMDGPU/regcoalesce-cannot-join-failures.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-coalescing -run-pass=simple-register-coalescing -verify-machineinstrs -o - %s | FileCheck %s +# RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-coalescing -run-pass=register-coalescer -verify-machineinstrs -o - %s | FileCheck %s --- name: couldnt_join_subrange_implicit_def_pred_block diff --git a/llvm/test/CodeGen/AMDGPU/regcoalesce-dbg.mir b/llvm/test/CodeGen/AMDGPU/regcoalesce-dbg.mir index 885907e4bee1..757633dfd4bb 100644 --- a/llvm/test/CodeGen/AMDGPU/regcoalesce-dbg.mir +++ b/llvm/test/CodeGen/AMDGPU/regcoalesce-dbg.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=amdgcn -run-pass simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc -march=amdgcn -run-pass register-coalescer -o - %s | FileCheck %s # Test that register coalescing does not allow a call to # LIS->getInstructionIndex with a DBG_VALUE instruction, which does not have diff --git a/llvm/test/CodeGen/AMDGPU/regcoalesce-keep-valid-lanes-implicit-def-bug39602.mir b/llvm/test/CodeGen/AMDGPU/regcoalesce-keep-valid-lanes-implicit-def-bug39602.mir index cfdffaf2700c..1c4900ae85f5 100644 --- a/llvm/test/CodeGen/AMDGPU/regcoalesce-keep-valid-lanes-implicit-def-bug39602.mir +++ b/llvm/test/CodeGen/AMDGPU/regcoalesce-keep-valid-lanes-implicit-def-bug39602.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-coalescing -run-pass=simple-register-coalescing -verify-machineinstrs -o - %s | FileCheck %s +# RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-coalescing -run-pass=register-coalescer -verify-machineinstrs -o - %s | FileCheck %s # Bug 39602: Avoid "Couldn't join subrange" error when clearing valid # lanes on an implicit_def that later cannot be erased. diff --git a/llvm/test/CodeGen/AMDGPU/regcoalesce-prune.mir b/llvm/test/CodeGen/AMDGPU/regcoalesce-prune.mir index 5664c7005b5d..e18989c13476 100644 --- a/llvm/test/CodeGen/AMDGPU/regcoalesce-prune.mir +++ b/llvm/test/CodeGen/AMDGPU/regcoalesce-prune.mir @@ -1,4 +1,4 @@ -# RUN: llc -o - %s -mtriple=amdgcn-amd-amdhsa-opencl -run-pass=simple-register-coalescing | FileCheck %s +# RUN: llc -o - %s -mtriple=amdgcn-amd-amdhsa-opencl -run-pass=register-coalescer | FileCheck %s --- # Checks for a bug where subregister liveranges were not properly pruned for # an IMPLCITI_DEF that gets removed completely. diff --git a/llvm/test/CodeGen/AMDGPU/regcoalescer-resolve-lane-conflict-by-subranges.mir b/llvm/test/CodeGen/AMDGPU/regcoalescer-resolve-lane-conflict-by-subranges.mir index 75eebcdd3ab4..7a026242dd88 100644 --- a/llvm/test/CodeGen/AMDGPU/regcoalescer-resolve-lane-conflict-by-subranges.mir +++ b/llvm/test/CodeGen/AMDGPU/regcoalescer-resolve-lane-conflict-by-subranges.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -march=amdgcn -run-pass simple-register-coalescing -verify-machineinstrs -o - %s | FileCheck --check-prefix=GCN %s +# RUN: llc -march=amdgcn -run-pass register-coalescer -verify-machineinstrs -o - %s | FileCheck --check-prefix=GCN %s # diff --git a/llvm/test/CodeGen/AMDGPU/regcoalescing-remove-partial-redundancy-assert.mir b/llvm/test/CodeGen/AMDGPU/regcoalescing-remove-partial-redundancy-assert.mir index 9e4b07669927..f431eb0564be 100644 --- a/llvm/test/CodeGen/AMDGPU/regcoalescing-remove-partial-redundancy-assert.mir +++ b/llvm/test/CodeGen/AMDGPU/regcoalescing-remove-partial-redundancy-assert.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=amdgcn -mcpu=gfx803 -run-pass simple-register-coalescing -verify-machineinstrs -o - %s | FileCheck --check-prefix=GCN %s +# RUN: llc -march=amdgcn -mcpu=gfx803 -run-pass register-coalescer -verify-machineinstrs -o - %s | FileCheck --check-prefix=GCN %s # # This test gave "Use not jointly dominated by defs" when # removePartialRedundancy attempted to prune and then re-extend a subrange. diff --git a/llvm/test/CodeGen/AMDGPU/rename-independent-subregs-mac-operands.mir b/llvm/test/CodeGen/AMDGPU/rename-independent-subregs-mac-operands.mir index abddba4dfa56..dd61fc8da961 100644 --- a/llvm/test/CodeGen/AMDGPU/rename-independent-subregs-mac-operands.mir +++ b/llvm/test/CodeGen/AMDGPU/rename-independent-subregs-mac-operands.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=amdgcn -verify-machineinstrs -run-pass=simple-register-coalescing,rename-independent-subregs -o - %s | FileCheck -check-prefix=GCN %s +# RUN: llc -march=amdgcn -verify-machineinstrs -run-pass=register-coalescer,rename-independent-subregs -o - %s | FileCheck -check-prefix=GCN %s --- # GCN-LABEL: name: mac_invalid_operands diff --git a/llvm/test/CodeGen/AMDGPU/rename-independent-subregs.mir b/llvm/test/CodeGen/AMDGPU/rename-independent-subregs.mir index 9a78bdff7fef..47114c92d795 100644 --- a/llvm/test/CodeGen/AMDGPU/rename-independent-subregs.mir +++ b/llvm/test/CodeGen/AMDGPU/rename-independent-subregs.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=amdgcn -verify-machineinstrs -run-pass simple-register-coalescing,rename-independent-subregs -o - %s | FileCheck %s +# RUN: llc -march=amdgcn -verify-machineinstrs -run-pass register-coalescer,rename-independent-subregs -o - %s | FileCheck %s --- | define amdgpu_kernel void @test0() { ret void } define amdgpu_kernel void @test1() { ret void } diff --git a/llvm/test/CodeGen/AMDGPU/spill-empty-live-interval.mir b/llvm/test/CodeGen/AMDGPU/spill-empty-live-interval.mir index 6da316db0f0e..d9c3d164fcad 100644 --- a/llvm/test/CodeGen/AMDGPU/spill-empty-live-interval.mir +++ b/llvm/test/CodeGen/AMDGPU/spill-empty-live-interval.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs -amdgpu-dce-in-ra=0 -stress-regalloc=1 -start-before=simple-register-coalescing -stop-after=greedy,1 -o - %s | FileCheck %s +# RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs -amdgpu-dce-in-ra=0 -stress-regalloc=1 -start-before=register-coalescer -stop-after=greedy,1 -o - %s | FileCheck %s # https://bugs.llvm.org/show_bug.cgi?id=33620 --- diff --git a/llvm/test/CodeGen/AMDGPU/twoaddr-regsequence.mir b/llvm/test/CodeGen/AMDGPU/twoaddr-regsequence.mir index 72cd2eec323f..3b641092fb99 100644 --- a/llvm/test/CodeGen/AMDGPU/twoaddr-regsequence.mir +++ b/llvm/test/CodeGen/AMDGPU/twoaddr-regsequence.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mtriple=amdgcn-amd-amdhsa -run-pass=liveintervals,twoaddressinstruction,simple-register-coalescing -verify-machineinstrs -o - %s | FileCheck %s +# RUN: llc -mtriple=amdgcn-amd-amdhsa -run-pass=liveintervals,twoaddressinstruction,register-coalescer -verify-machineinstrs -o - %s | FileCheck %s # Check that LiveIntervals are correctly updated when eliminating REG_SEQUENCE. --- diff --git a/llvm/test/CodeGen/AMDGPU/undef-subreg-use-after-coalesce.mir b/llvm/test/CodeGen/AMDGPU/undef-subreg-use-after-coalesce.mir index 5b1f420cce41..99c955319c64 100644 --- a/llvm/test/CodeGen/AMDGPU/undef-subreg-use-after-coalesce.mir +++ b/llvm/test/CodeGen/AMDGPU/undef-subreg-use-after-coalesce.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx906 -verify-machineinstrs -verify-coalescing -run-pass=simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx906 -verify-machineinstrs -verify-coalescing -run-pass=register-coalescer -o - %s | FileCheck %s # The copy from %0 to %1 introduces liveness for %3.sub2. After # coalescing, the use of %1.sub2 needs to be marked undef. The diff --git a/llvm/test/CodeGen/AMDGPU/vgpr-remat.mir b/llvm/test/CodeGen/AMDGPU/vgpr-remat.mir index caae2747264d..25d8961b0144 100644 --- a/llvm/test/CodeGen/AMDGPU/vgpr-remat.mir +++ b/llvm/test/CodeGen/AMDGPU/vgpr-remat.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass=simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass=register-coalescer -o - %s | FileCheck %s # Check that we get two move-immediates into %1 and %2, instead of a copy from # %1 to %2, because that would introduce a dependency and maybe a stall. diff --git a/llvm/test/CodeGen/ARM/O3-pipeline.ll b/llvm/test/CodeGen/ARM/O3-pipeline.ll index 5bf56bca0241..5e565970fc3a 100644 --- a/llvm/test/CodeGen/ARM/O3-pipeline.ll +++ b/llvm/test/CodeGen/ARM/O3-pipeline.ll @@ -122,7 +122,7 @@ ; CHECK-NEXT: Two-Address instruction pass ; CHECK-NEXT: Slot index numbering ; CHECK-NEXT: Live Interval Analysis -; CHECK-NEXT: Simple Register Coalescing +; CHECK-NEXT: Register Coalescer ; CHECK-NEXT: Rename Disconnected Subregister Components ; CHECK-NEXT: Machine Instruction Scheduler ; CHECK-NEXT: Machine Block Frequency Analysis diff --git a/llvm/test/CodeGen/ARM/no-register-coalescing-in-returnsTwice.mir b/llvm/test/CodeGen/ARM/no-register-coalescing-in-returnsTwice.mir index bba202406798..8e60bb528156 100644 --- a/llvm/test/CodeGen/ARM/no-register-coalescing-in-returnsTwice.mir +++ b/llvm/test/CodeGen/ARM/no-register-coalescing-in-returnsTwice.mir @@ -1,4 +1,4 @@ -# RUN: llc --run-pass=simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc --run-pass=register-coalescer -o - %s | FileCheck %s # pr45489 # Coalescing variables across a setjmp call can add a undefined # variable value when longjmp if such variables are spilled and diff --git a/llvm/test/CodeGen/ARM/regcoal-invalid-subrange-update.mir b/llvm/test/CodeGen/ARM/regcoal-invalid-subrange-update.mir index 6503e5117d46..bf08af763357 100644 --- a/llvm/test/CodeGen/ARM/regcoal-invalid-subrange-update.mir +++ b/llvm/test/CodeGen/ARM/regcoal-invalid-subrange-update.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc %s -start-before simple-register-coalescing -mtriple=arm-apple-ios -stop-after machine-scheduler -o - -arm-enable-subreg-liveness -verify-machineinstrs | FileCheck %s +# RUN: llc %s -start-before register-coalescer -mtriple=arm-apple-ios -stop-after machine-scheduler -o - -arm-enable-subreg-liveness -verify-machineinstrs | FileCheck %s # Check that when we merge live-ranges that imply offseting # the definition of a subregister by some other subreg index, diff --git a/llvm/test/CodeGen/Hexagon/regalloc-coal-extend-short-subrange.mir b/llvm/test/CodeGen/Hexagon/regalloc-coal-extend-short-subrange.mir index c60a93f8e33e..16a22633e145 100644 --- a/llvm/test/CodeGen/Hexagon/regalloc-coal-extend-short-subrange.mir +++ b/llvm/test/CodeGen/Hexagon/regalloc-coal-extend-short-subrange.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=hexagon -run-pass simple-register-coalescing -verify-coalescing %s -o - | FileCheck %s +# RUN: llc -march=hexagon -run-pass register-coalescer -verify-coalescing %s -o - | FileCheck %s # # Check that this doesn't crash. # CHECK: ENDLOOP diff --git a/llvm/test/CodeGen/Hexagon/regalloc-coal-fullreg-undef.mir b/llvm/test/CodeGen/Hexagon/regalloc-coal-fullreg-undef.mir index 8fcac5d54f8b..fac59950b1bc 100644 --- a/llvm/test/CodeGen/Hexagon/regalloc-coal-fullreg-undef.mir +++ b/llvm/test/CodeGen/Hexagon/regalloc-coal-fullreg-undef.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=hexagon -run-pass=simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc -march=hexagon -run-pass=register-coalescer -o - %s | FileCheck %s # Make sure that the coalescer does not create a full definition with # an undef flag on the destination. This used to happen when rematerializing diff --git a/llvm/test/CodeGen/Hexagon/regalloc-liveout-undef.mir b/llvm/test/CodeGen/Hexagon/regalloc-liveout-undef.mir index f31c5e572c95..8cb88ae5949c 100644 --- a/llvm/test/CodeGen/Hexagon/regalloc-liveout-undef.mir +++ b/llvm/test/CodeGen/Hexagon/regalloc-liveout-undef.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=hexagon -run-pass liveintervals -run-pass machineverifier -run-pass simple-register-coalescing %s -o - | FileCheck %s +# RUN: llc -march=hexagon -run-pass liveintervals -run-pass machineverifier -run-pass register-coalescer %s -o - | FileCheck %s # # If there is no consumer of the live intervals, the live intervals pass # will be freed immediately after it runs, before the verifier. Add a diff --git a/llvm/test/CodeGen/Hexagon/verify-liveness-at-def.mir b/llvm/test/CodeGen/Hexagon/verify-liveness-at-def.mir index d57325e5b27d..f4a623d74436 100644 --- a/llvm/test/CodeGen/Hexagon/verify-liveness-at-def.mir +++ b/llvm/test/CodeGen/Hexagon/verify-liveness-at-def.mir @@ -1,8 +1,8 @@ -# Using a trick to run simple-register-coalescing twice, that way +# Using a trick to run register-coalescer twice, that way # liveintervals should be preserved while running the machine verifier. # -# RUN: not --crash llc -o - %s -march=hexagon -hexagon-subreg-liveness=false -run-pass simple-register-coalescing -verify-machineinstrs -run-pass simple-register-coalescing 2>&1 | FileCheck -check-prefix=CHECK-NOSUB %s -# RUN: not --crash llc -o - %s -march=hexagon -hexagon-subreg-liveness=true -run-pass simple-register-coalescing -verify-machineinstrs -run-pass simple-register-coalescing 2>&1 | FileCheck -check-prefix=CHECK-SUB %s +# RUN: not --crash llc -o - %s -march=hexagon -hexagon-subreg-liveness=false -run-pass register-coalescer -verify-machineinstrs -run-pass register-coalescer 2>&1 | FileCheck -check-prefix=CHECK-NOSUB %s +# RUN: not --crash llc -o - %s -march=hexagon -hexagon-subreg-liveness=true -run-pass register-coalescer -verify-machineinstrs -run-pass register-coalescer 2>&1 | FileCheck -check-prefix=CHECK-SUB %s --- name: test_pass diff --git a/llvm/test/CodeGen/LoongArch/opt-pipeline.ll b/llvm/test/CodeGen/LoongArch/opt-pipeline.ll index f3c160b789b4..8b1d635b605b 100644 --- a/llvm/test/CodeGen/LoongArch/opt-pipeline.ll +++ b/llvm/test/CodeGen/LoongArch/opt-pipeline.ll @@ -113,7 +113,7 @@ ; CHECK-NEXT: MachineDominator Tree Construction ; CHECK-NEXT: Slot index numbering ; CHECK-NEXT: Live Interval Analysis -; CHECK-NEXT: Simple Register Coalescing +; CHECK-NEXT: Register Coalescer ; CHECK-NEXT: Rename Disconnected Subregister Components ; CHECK-NEXT: Machine Instruction Scheduler ; CHECK-NEXT: Machine Block Frequency Analysis diff --git a/llvm/test/CodeGen/M68k/pipeline.ll b/llvm/test/CodeGen/M68k/pipeline.ll index e936abf7f568..dfaa149b7a47 100644 --- a/llvm/test/CodeGen/M68k/pipeline.ll +++ b/llvm/test/CodeGen/M68k/pipeline.ll @@ -84,7 +84,7 @@ ; CHECK-NEXT: MachineDominator Tree Construction ; CHECK-NEXT: Slot index numbering ; CHECK-NEXT: Live Interval Analysis -; CHECK-NEXT: Simple Register Coalescing +; CHECK-NEXT: Register Coalescer ; CHECK-NEXT: Rename Disconnected Subregister Components ; CHECK-NEXT: Machine Instruction Scheduler ; CHECK-NEXT: Machine Block Frequency Analysis diff --git a/llvm/test/CodeGen/Mips/coalesce-partial-redundant-reguse-terminator.mir b/llvm/test/CodeGen/Mips/coalesce-partial-redundant-reguse-terminator.mir index f442566dd60b..d57c3edd480e 100644 --- a/llvm/test/CodeGen/Mips/coalesce-partial-redundant-reguse-terminator.mir +++ b/llvm/test/CodeGen/Mips/coalesce-partial-redundant-reguse-terminator.mir @@ -1,4 +1,4 @@ -# RUN: llc -march=mips64 -o - %s -run-pass=simple-register-coalescing | FileCheck %s +# RUN: llc -march=mips64 -o - %s -run-pass=register-coalescer | FileCheck %s --- name: f diff --git a/llvm/test/CodeGen/PowerPC/O3-pipeline.ll b/llvm/test/CodeGen/PowerPC/O3-pipeline.ll index cc5d4b1aa125..0b6b5d752298 100644 --- a/llvm/test/CodeGen/PowerPC/O3-pipeline.ll +++ b/llvm/test/CodeGen/PowerPC/O3-pipeline.ll @@ -154,7 +154,7 @@ ; CHECK-NEXT: Two-Address instruction pass ; CHECK-NEXT: Slot index numbering ; CHECK-NEXT: Live Interval Analysis -; CHECK-NEXT: Simple Register Coalescing +; CHECK-NEXT: Register Coalescer ; CHECK-NEXT: Rename Disconnected Subregister Components ; CHECK-NEXT: Machine Instruction Scheduler ; CHECK-NEXT: PowerPC VSX FMA Mutation diff --git a/llvm/test/CodeGen/PowerPC/expand-contiguous-isel.ll b/llvm/test/CodeGen/PowerPC/expand-contiguous-isel.ll index 2f32d53ace30..15b7dc1a38fa 100644 --- a/llvm/test/CodeGen/PowerPC/expand-contiguous-isel.ll +++ b/llvm/test/CodeGen/PowerPC/expand-contiguous-isel.ll @@ -1,9 +1,9 @@ target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" ; This file mainly tests that one of the ISEL instruction in the group uses the same register for operand RT, RA, RB -; This redudant ISEL is introduced during simple register coalescing stage. +; This redudant ISEL is introduced during register coalescing stage. -; Simple register coalescing first create the foldable ISEL instruction as we have seen in expand-foldable-isel.ll: +; Register coalescing first create the foldable ISEL instruction as we have seen in expand-foldable-isel.ll: ; %vreg85<def> = ISEL8 %vreg83, %vreg83, %vreg33:sub_eq ; Later the register coalescer figures out it could further coalesce %vreg85 with %vreg83: diff --git a/llvm/test/CodeGen/PowerPC/expand-foldable-isel.ll b/llvm/test/CodeGen/PowerPC/expand-foldable-isel.ll index 8f671bc9bfe0..4396b0a4ed3b 100644 --- a/llvm/test/CodeGen/PowerPC/expand-foldable-isel.ll +++ b/llvm/test/CodeGen/PowerPC/expand-foldable-isel.ll @@ -2,12 +2,12 @@ target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" ; This file mainly tests the case that the two input registers of the ISEL instruction are the same register. -; The foldable ISEL in this test case is introduced at simple register coalescing stage. +; The foldable ISEL in this test case is introduced at register coalescing stage. ; Before that stage we have: ; %vreg18<def> = ISEL8 %vreg5, %vreg2, %vreg15<undef>; -; At simple register coalescing stage, the register coalescer figures out it could remove the copy +; At register coalescing stage, the register coalescer figures out it could remove the copy ; from %vreg2 to %vreg5, put the original value %X3 into %vreg5 directly ; erased: 336r %vreg5<def> = COPY %vreg2 ; updated: 288B %vreg5<def> = COPY %X3; diff --git a/llvm/test/CodeGen/PowerPC/lower-globaladdr32-aix.ll b/llvm/test/CodeGen/PowerPC/lower-globaladdr32-aix.ll index 668584a1aabc..0653d4ef6fd0 100644 --- a/llvm/test/CodeGen/PowerPC/lower-globaladdr32-aix.ll +++ b/llvm/test/CodeGen/PowerPC/lower-globaladdr32-aix.ll @@ -1,16 +1,16 @@ ; RUN: llc -mtriple powerpc-ibm-aix-xcoff -code-model=small \ -; RUN: -stop-after=machine-cp -print-before=simple-register-coalescing 2>&1 < \ +; RUN: -stop-after=machine-cp -print-before=register-coalescer 2>&1 < \ ; RUN: %s | FileCheck --check-prefix=SMALL %s ; RUN: not --crash llc -mtriple powerpc-ibm-aix-xcoff -code-model=medium \ ; RUN: -stop-after=machine-cp 2>&1 < %s | FileCheck --check-prefix=MEDIUM %s ; RUN: llc -mtriple powerpc-ibm-aix-xcoff -code-model=large \ -; RUN: -stop-after=machine-cp -print-before=simple-register-coalescing 2>&1 < \ +; RUN: -stop-after=machine-cp -print-before=register-coalescer 2>&1 < \ ; RUN: %s | FileCheck --check-prefix=LARGE %s ; RUN: llc -mtriple powerpc-ibm-aix-xcoff -stop-after=machine-cp \ -; RUN: -print-before=simple-register-coalescing 2>&1 < %s | FileCheck \ +; RUN: -print-before=register-coalescer 2>&1 < %s | FileCheck \ ; RUN: --check-prefix=SMALL %s @msg = common global ptr null, align 4 diff --git a/llvm/test/CodeGen/PowerPC/lower-globaladdr64-aix.ll b/llvm/test/CodeGen/PowerPC/lower-globaladdr64-aix.ll index c4f481260955..a1d0dc57619a 100644 --- a/llvm/test/CodeGen/PowerPC/lower-globaladdr64-aix.ll +++ b/llvm/test/CodeGen/PowerPC/lower-globaladdr64-aix.ll @@ -1,16 +1,16 @@ ; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -code-model=small \ -; RUN: -stop-after=machine-cp -print-before=simple-register-coalescing 2>&1 < \ +; RUN: -stop-after=machine-cp -print-before=register-coalescer 2>&1 < \ ; RUN: %s | FileCheck --check-prefix=SMALL %s ; RUN: not --crash llc -mtriple powerpc64-ibm-aix-xcoff -code-model=medium \ ; RUN: -stop-after=machine-cp 2>&1 < %s | FileCheck --check-prefix=MEDIUM %s ; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -code-model=large \ -; RUN: -stop-after=machine-cp -print-before=simple-register-coalescing 2>&1 < \ +; RUN: -stop-after=machine-cp -print-before=register-coalescer 2>&1 < \ ; RUN: %s | FileCheck --check-prefix=LARGE %s ; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -stop-after=machine-cp \ -; RUN: -print-before=simple-register-coalescing 2>&1 < %s | FileCheck \ +; RUN: -print-before=register-coalescer 2>&1 < %s | FileCheck \ ; RUN: --check-prefix=SMALL %s @msg = common global ptr null, align 8 diff --git a/llvm/test/CodeGen/PowerPC/remove-copy-crunsetcrbit.mir b/llvm/test/CodeGen/PowerPC/remove-copy-crunsetcrbit.mir index 67b64b447a5f..3a312d2f4a8b 100644 --- a/llvm/test/CodeGen/PowerPC/remove-copy-crunsetcrbit.mir +++ b/llvm/test/CodeGen/PowerPC/remove-copy-crunsetcrbit.mir @@ -1,4 +1,4 @@ -# RUN: llc -run-pass simple-register-coalescing %s -o - | FileCheck %s +# RUN: llc -run-pass register-coalescer %s -o - | FileCheck %s --- | target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" @@ -168,7 +168,7 @@ body: | BLR8 implicit $lr8, implicit $rm, implicit killed $x3 ... -#Copy of CRUNSET should be removed in simple register coalescing pass +#Copy of CRUNSET should be removed in register coalescing pass #CHECK-LABEL: copycrunset #CHECK: bb.1.while.body.preheader: #CHECK-NOT: %9:crbitrc = CRUNSET diff --git a/llvm/test/CodeGen/RISCV/O3-pipeline.ll b/llvm/test/CodeGen/RISCV/O3-pipeline.ll index aa92f2d8bc32..4c6c28a3bb20 100644 --- a/llvm/test/CodeGen/RISCV/O3-pipeline.ll +++ b/llvm/test/CodeGen/RISCV/O3-pipeline.ll @@ -119,7 +119,7 @@ ; CHECK-NEXT: MachineDominator Tree Construction ; CHECK-NEXT: Slot index numbering ; CHECK-NEXT: Live Interval Analysis -; CHECK-NEXT: Simple Register Coalescing +; CHECK-NEXT: Register Coalescer ; CHECK-NEXT: Rename Disconnected Subregister Components ; CHECK-NEXT: Machine Instruction Scheduler ; CHECK-NEXT: Machine Block Frequency Analysis diff --git a/llvm/test/CodeGen/SystemZ/regalloc-GR128-02.mir b/llvm/test/CodeGen/SystemZ/regalloc-GR128-02.mir index 1a71c8f5fb7d..9a338a058ed1 100644 --- a/llvm/test/CodeGen/SystemZ/regalloc-GR128-02.mir +++ b/llvm/test/CodeGen/SystemZ/regalloc-GR128-02.mir @@ -1,5 +1,5 @@ # RUN: llc %s -mtriple=s390x-linux-gnu -mcpu=z13 \ -# RUN: -start-before=simple-register-coalescing -o - 2>&1 > /dev/null +# RUN: -start-before=register-coalescer -o - 2>&1 > /dev/null # Test that the SystemZ shouldCoalesce() implementation does not crash in # case of an undef use in another MBB. This was discovered in testing with diff --git a/llvm/test/CodeGen/SystemZ/regcoal-subranges-update-remat.mir b/llvm/test/CodeGen/SystemZ/regcoal-subranges-update-remat.mir index de7e4647551f..f7b58f04fd7b 100644 --- a/llvm/test/CodeGen/SystemZ/regcoal-subranges-update-remat.mir +++ b/llvm/test/CodeGen/SystemZ/regcoal-subranges-update-remat.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mcpu=z13 -O3 -misched=ilpmin -systemz-subreg-liveness -verify-machineinstrs -start-before simple-register-coalescing %s -mtriple s390x-ibm-linux -stop-after machine-scheduler -o - | FileCheck %s +# RUN: llc -mcpu=z13 -O3 -misched=ilpmin -systemz-subreg-liveness -verify-machineinstrs -start-before register-coalescer %s -mtriple s390x-ibm-linux -stop-after machine-scheduler -o - | FileCheck %s # Check that when the register coalescer rematerializes a register to set # only a sub register, it sets the subranges of the unused lanes as being dead diff --git a/llvm/test/CodeGen/SystemZ/regcoal-subranges-update.mir b/llvm/test/CodeGen/SystemZ/regcoal-subranges-update.mir index cb5f422a0489..f709b70ff1b7 100644 --- a/llvm/test/CodeGen/SystemZ/regcoal-subranges-update.mir +++ b/llvm/test/CodeGen/SystemZ/regcoal-subranges-update.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -mtriple s390x-ibm-linux -mcpu=z13 -systemz-subreg-liveness -verify-machineinstrs -start-before simple-register-coalescing -stop-after greedy -o - %s | FileCheck %s +# RUN: llc -mtriple s390x-ibm-linux -mcpu=z13 -systemz-subreg-liveness -verify-machineinstrs -start-before register-coalescer -stop-after greedy -o - %s | FileCheck %s # Check that when we split the live-range with several active lanes # as part of the live-range update, we correctly eliminate the VNI from diff --git a/llvm/test/CodeGen/SystemZ/regcoal-undef-lane-4-rm-cp-commuting-def.mir b/llvm/test/CodeGen/SystemZ/regcoal-undef-lane-4-rm-cp-commuting-def.mir index 177afcd73e82..b1a0a309e1e2 100644 --- a/llvm/test/CodeGen/SystemZ/regcoal-undef-lane-4-rm-cp-commuting-def.mir +++ b/llvm/test/CodeGen/SystemZ/regcoal-undef-lane-4-rm-cp-commuting-def.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -run-pass simple-register-coalescing %s -systemz-subreg-liveness -O3 -mtriple s390x-ibm-linux -mcpu z13 -o - | FileCheck %s +# RUN: llc -run-pass register-coalescer %s -systemz-subreg-liveness -O3 -mtriple s390x-ibm-linux -mcpu z13 -o - | FileCheck %s # # When the coalescing tries to coalesce `%20 = COPY %18`, # %18 has been coalesced all the way up to %15 = ROSBG. diff --git a/llvm/test/CodeGen/SystemZ/subregliveness-06.mir b/llvm/test/CodeGen/SystemZ/subregliveness-06.mir index d93232a695d2..1ca1114be668 100644 --- a/llvm/test/CodeGen/SystemZ/subregliveness-06.mir +++ b/llvm/test/CodeGen/SystemZ/subregliveness-06.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=s390x-linux-gnu -mcpu=z13 -misched=shuffle -verify-machineinstrs -start-before=simple-register-coalescing -systemz-subreg-liveness %s -o - | FileCheck %s +# RUN: llc -mtriple=s390x-linux-gnu -mcpu=z13 -misched=shuffle -verify-machineinstrs -start-before=register-coalescer -systemz-subreg-liveness %s -o - | FileCheck %s # -misched=shuffle is under !NDEBUG. # REQUIRES: asserts diff --git a/llvm/test/CodeGen/SystemZ/subregliveness-07.mir b/llvm/test/CodeGen/SystemZ/subregliveness-07.mir index f3e190392e0b..d12524b80032 100644 --- a/llvm/test/CodeGen/SystemZ/subregliveness-07.mir +++ b/llvm/test/CodeGen/SystemZ/subregliveness-07.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=s390x-ibm-linux -systemz-subreg-liveness -verify-machineinstrs -start-before=simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc -mtriple=s390x-ibm-linux -systemz-subreg-liveness -verify-machineinstrs -start-before=register-coalescer -o - %s | FileCheck %s # Check for successful compilation. # CHECK: lhi %r0, 0 diff --git a/llvm/test/CodeGen/WebAssembly/regcoalesce-disable.ll b/llvm/test/CodeGen/WebAssembly/regcoalesce-disable.ll index 82d99d2b75b2..7a44418e23b9 100644 --- a/llvm/test/CodeGen/WebAssembly/regcoalesce-disable.ll +++ b/llvm/test/CodeGen/WebAssembly/regcoalesce-disable.ll @@ -3,8 +3,8 @@ ; Test if RegisterCoalesce pass is disabled in -O1. -; O1-NOT: Simple Register Coalescing -; O2: Simple Register Coalescing +; O1-NOT: Register Coalescer +; O2: Register Coalescer target triple = "wasm32-unknown-unknown" define void @test() { diff --git a/llvm/test/CodeGen/X86/adx-commute.mir b/llvm/test/CodeGen/X86/adx-commute.mir index 5683d0610de5..aa20084f7cd9 100644 --- a/llvm/test/CodeGen/X86/adx-commute.mir +++ b/llvm/test/CodeGen/X86/adx-commute.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -o - -mtriple=x86_64-- -run-pass=twoaddressinstruction,simple-register-coalescing %s | FileCheck %s +# RUN: llc -o - -mtriple=x86_64-- -run-pass=twoaddressinstruction,register-coalescer %s | FileCheck %s # Tests for commuting ADCX and ADOX to avoid copies. The ADOX tests were manually constructed by modifying ADCX tests to use OF instead of CF. --- | ; ModuleID = 'test.ll' diff --git a/llvm/test/CodeGen/X86/coalesce-dbg-value-subreg-rewrite.mir b/llvm/test/CodeGen/X86/coalesce-dbg-value-subreg-rewrite.mir index 8fa3d82a9669..ed89609b143a 100644 --- a/llvm/test/CodeGen/X86/coalesce-dbg-value-subreg-rewrite.mir +++ b/llvm/test/CodeGen/X86/coalesce-dbg-value-subreg-rewrite.mir @@ -1,4 +1,4 @@ -# RUN: llc -O0 -mtriple x86_64-pc-linux-gnu -run-pass simple-register-coalescing -verify-coalescing -o - %s | FileCheck %s +# RUN: llc -O0 -mtriple x86_64-pc-linux-gnu -run-pass register-coalescer -verify-coalescing -o - %s | FileCheck %s --- | define i16 @main() { diff --git a/llvm/test/CodeGen/X86/coalesce-dead-lanes.mir b/llvm/test/CodeGen/X86/coalesce-dead-lanes.mir index 6c9e9ad81f15..f599ed00a3e5 100644 --- a/llvm/test/CodeGen/X86/coalesce-dead-lanes.mir +++ b/llvm/test/CodeGen/X86/coalesce-dead-lanes.mir @@ -1,4 +1,4 @@ -# RUN: llc -run-pass simple-register-coalescing -O0 -mtriple x86_64-pc-linux-gnu -o - %s | FileCheck %s +# RUN: llc -run-pass register-coalescer -O0 -mtriple x86_64-pc-linux-gnu -o - %s | FileCheck %s --- name: foo diff --git a/llvm/test/CodeGen/X86/dbg-value-superreg-copy.mir b/llvm/test/CodeGen/X86/dbg-value-superreg-copy.mir index 3a67cf67be8e..57ab79c3f6d2 100644 --- a/llvm/test/CodeGen/X86/dbg-value-superreg-copy.mir +++ b/llvm/test/CodeGen/X86/dbg-value-superreg-copy.mir @@ -1,4 +1,4 @@ -# RUN: llc -O1 -start-after simple-register-coalescing -o - %s -experimental-debug-variable-locations=false | FileCheck %s +# RUN: llc -O1 -start-after register-coalescer -o - %s -experimental-debug-variable-locations=false | FileCheck %s --- | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/CodeGen/X86/dbg-value-superreg-copy2.mir b/llvm/test/CodeGen/X86/dbg-value-superreg-copy2.mir index 6bb05dea4b5e..86319da8db01 100644 --- a/llvm/test/CodeGen/X86/dbg-value-superreg-copy2.mir +++ b/llvm/test/CodeGen/X86/dbg-value-superreg-copy2.mir @@ -1,4 +1,4 @@ -# RUN: llc -O1 -start-after simple-register-coalescing -o - %s -experimental-debug-variable-locations=true | FileCheck %s +# RUN: llc -O1 -start-after register-coalescer -o - %s -experimental-debug-variable-locations=true | FileCheck %s --- | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/CodeGen/X86/late-remat-update-2.mir b/llvm/test/CodeGen/X86/late-remat-update-2.mir index 5948e258867e..3ffcb2fdf9e4 100644 --- a/llvm/test/CodeGen/X86/late-remat-update-2.mir +++ b/llvm/test/CodeGen/X86/late-remat-update-2.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=x86_64-- -run-pass=simple-register-coalescing -run-pass=regallocbasic -run-pass=virtregrewriter -late-remat-update-threshold=0 %s -o - | FileCheck %s +# RUN: llc -mtriple=x86_64-- -run-pass=register-coalescer -run-pass=regallocbasic -run-pass=virtregrewriter -late-remat-update-threshold=0 %s -o - | FileCheck %s # # PR40061: %t2 = %t1 is rematerialized and %t1 is added into toBeUpdated set # to postpone its live interval update. After the rematerialization, the live diff --git a/llvm/test/CodeGen/X86/late-remat-update.mir b/llvm/test/CodeGen/X86/late-remat-update.mir index da7b9e11820d..84a78f84728c 100644 --- a/llvm/test/CodeGen/X86/late-remat-update.mir +++ b/llvm/test/CodeGen/X86/late-remat-update.mir @@ -1,5 +1,5 @@ # REQUIRES: asserts -# RUN: llc -mtriple=x86_64-- -run-pass=simple-register-coalescing -late-remat-update-threshold=1 -stats %s -o /dev/null 2>&1 | FileCheck %s +# RUN: llc -mtriple=x86_64-- -run-pass=register-coalescer -late-remat-update-threshold=1 -stats %s -o /dev/null 2>&1 | FileCheck %s # Check the test will rematerialize for three copies, but will call shrinkToUses # only once to update live range because of late rematerialization update. # CHECK: 3 regalloc - Number of instructions re-materialized diff --git a/llvm/test/CodeGen/X86/opt-pipeline.ll b/llvm/test/CodeGen/X86/opt-pipeline.ll index 556a2be0b138..fb8d2335b341 100644 --- a/llvm/test/CodeGen/X86/opt-pipeline.ll +++ b/llvm/test/CodeGen/X86/opt-pipeline.ll @@ -138,7 +138,7 @@ ; CHECK-NEXT: Two-Address instruction pass ; CHECK-NEXT: Slot index numbering ; CHECK-NEXT: Live Interval Analysis -; CHECK-NEXT: Simple Register Coalescing +; CHECK-NEXT: Register Coalescer ; CHECK-NEXT: Rename Disconnected Subregister Components ; CHECK-NEXT: Machine Instruction Scheduler ; CHECK-NEXT: Machine Block Frequency Analysis diff --git a/llvm/test/CodeGen/X86/pre-coalesce.mir b/llvm/test/CodeGen/X86/pre-coalesce.mir index 925cc4ba221b..107f8944a729 100644 --- a/llvm/test/CodeGen/X86/pre-coalesce.mir +++ b/llvm/test/CodeGen/X86/pre-coalesce.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=x86_64-unknown-linux-gnu -run-pass simple-register-coalescing -o - %s | FileCheck %s +# RUN: llc -mtriple=x86_64-unknown-linux-gnu -run-pass register-coalescer -o - %s | FileCheck %s # Check there is no partial redundent copy left in the loop after register coalescing. --- | ; ModuleID = '<stdin>' diff --git a/llvm/test/CodeGen/X86/simple-register-allocation-read-undef.mir b/llvm/test/CodeGen/X86/simple-register-allocation-read-undef.mir index d99a70820681..11387521b84d 100644 --- a/llvm/test/CodeGen/X86/simple-register-allocation-read-undef.mir +++ b/llvm/test/CodeGen/X86/simple-register-allocation-read-undef.mir @@ -1,4 +1,4 @@ -# RUN: llc < %s -x=mir -mtriple=x86_64-- -run-pass=simple-register-coalescing | FileCheck %s +# RUN: llc < %s -x=mir -mtriple=x86_64-- -run-pass=register-coalescer | FileCheck %s --- name: f body: | diff --git a/llvm/test/CodeGen/X86/statepoint-invoke-ra-hoist-copies.mir b/llvm/test/CodeGen/X86/statepoint-invoke-ra-hoist-copies.mir index 5fa89bfbd846..aae2f3870138 100644 --- a/llvm/test/CodeGen/X86/statepoint-invoke-ra-hoist-copies.mir +++ b/llvm/test/CodeGen/X86/statepoint-invoke-ra-hoist-copies.mir @@ -1,5 +1,5 @@ # REQUIRES: asserts -# RUN: llc -x mir -run-pass=simple-register-coalescing,greedy -verify-machineinstrs < %s 2>&1 | FileCheck %s +# RUN: llc -x mir -run-pass=register-coalescer,greedy -verify-machineinstrs < %s 2>&1 | FileCheck %s # CHECK-NOT: Bad Parent VNI --- | diff --git a/llvm/test/CodeGen/X86/statepoint-invoke-ra-inline-spiller.mir b/llvm/test/CodeGen/X86/statepoint-invoke-ra-inline-spiller.mir index 9fef2904eb89..87f5f0f96c50 100644 --- a/llvm/test/CodeGen/X86/statepoint-invoke-ra-inline-spiller.mir +++ b/llvm/test/CodeGen/X86/statepoint-invoke-ra-inline-spiller.mir @@ -1,5 +1,5 @@ # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py -# RUN: llc -x mir -run-pass=simple-register-coalescing,greedy -verify-machineinstrs < %s | FileCheck %s +# RUN: llc -x mir -run-pass=register-coalescer,greedy -verify-machineinstrs < %s | FileCheck %s ## Check that Inline Spiller cannot insert spill after last insertion point. diff --git a/llvm/test/CodeGen/X86/statepoint-invoke-ra.mir b/llvm/test/CodeGen/X86/statepoint-invoke-ra.mir index 115d4110a471..858ff3f1888b 100644 --- a/llvm/test/CodeGen/X86/statepoint-invoke-ra.mir +++ b/llvm/test/CodeGen/X86/statepoint-invoke-ra.mir @@ -1,4 +1,4 @@ -# RUN: llc -x mir -o - %s -run-pass=twoaddressinstruction,simple-register-coalescing,greedy -verify-regalloc 2>&1 | FileCheck %s +# RUN: llc -x mir -o - %s -run-pass=twoaddressinstruction,register-coalescer,greedy -verify-regalloc 2>&1 | FileCheck %s # The test checks no verification errors happen in the case of # statepoint invoke instruction with tied-defs. diff --git a/llvm/test/DebugInfo/MIR/InstrRef/phi-coalesce-subreg.mir b/llvm/test/DebugInfo/MIR/InstrRef/phi-coalesce-subreg.mir index a2f991074671..51d3f7e1a6a4 100644 --- a/llvm/test/DebugInfo/MIR/InstrRef/phi-coalesce-subreg.mir +++ b/llvm/test/DebugInfo/MIR/InstrRef/phi-coalesce-subreg.mir @@ -1,7 +1,7 @@ # RUN: llc %s -o - -mtriple=x86_64-unknown-unknown \ # RUN: -experimental-debug-variable-locations \ # RUN: -start-before=phi-node-elimination \ -# RUN: -stop-after=simple-register-coalescing \ +# RUN: -stop-after=register-coalescer \ # RUN: | FileCheck %s --check-prefix=DOESCOALESCE # RUN: llc %s -o - -mtriple=x86_64-unknown-unknown \ # RUN: -experimental-debug-variable-locations \ diff --git a/llvm/test/DebugInfo/MIR/InstrRef/phi-coalescing.mir b/llvm/test/DebugInfo/MIR/InstrRef/phi-coalescing.mir index b4172bd5f008..bc1c7ebac6ce 100644 --- a/llvm/test/DebugInfo/MIR/InstrRef/phi-coalescing.mir +++ b/llvm/test/DebugInfo/MIR/InstrRef/phi-coalescing.mir @@ -1,10 +1,10 @@ # RUN: llc %s -o - -mtriple=x86_64-unknown-unknown \ # RUN: -experimental-debug-variable-locations \ -# RUN: -run-pass=phi-node-elimination,simple-register-coalescing \ +# RUN: -run-pass=phi-node-elimination,register-coalescer \ # RUN: | FileCheck %s --check-prefix=DOESCOALESCE # RUN: llc %s -o - -mtriple=x86_64-unknown-unknown \ # RUN: -experimental-debug-variable-locations \ -# RUN: -run-pass=phi-node-elimination,simple-register-coalescing,livedebugvars,greedy,virtregrewriter \ +# RUN: -run-pass=phi-node-elimination,register-coalescer,livedebugvars,greedy,virtregrewriter \ # RUN: | FileCheck %s --check-prefix=CHECK # # Test that a PHI with a debug instruction number attached survives register diff --git a/llvm/test/DebugInfo/MIR/X86/regcoalescer.mir b/llvm/test/DebugInfo/MIR/X86/regcoalescer.mir index 581375b6b287..30c3bd27b0a2 100644 --- a/llvm/test/DebugInfo/MIR/X86/regcoalescer.mir +++ b/llvm/test/DebugInfo/MIR/X86/regcoalescer.mir @@ -1,4 +1,4 @@ -# RUN: llc -O1 -filetype=asm -mtriple x86_64-unknown-linux-gnu -mcpu=x86-64 -o - %s -start-before=simple-register-coalescing -stop-after=simple-register-coalescing | FileCheck %s +# RUN: llc -O1 -filetype=asm -mtriple x86_64-unknown-linux-gnu -mcpu=x86-64 -o - %s -start-before=register-coalescer -stop-after=register-coalescer | FileCheck %s --- | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/DebugInfo/MIR/X86/regcoalescing-clears-dead-dbgvals.mir b/llvm/test/DebugInfo/MIR/X86/regcoalescing-clears-dead-dbgvals.mir index c1d361a209a7..e2b8fa272d10 100644 --- a/llvm/test/DebugInfo/MIR/X86/regcoalescing-clears-dead-dbgvals.mir +++ b/llvm/test/DebugInfo/MIR/X86/regcoalescing-clears-dead-dbgvals.mir @@ -1,4 +1,4 @@ -# RUN: llc -mtriple=x86_64-unknown-unknown %s -o - -run-pass=simple-register-coalescing | FileCheck %s +# RUN: llc -mtriple=x86_64-unknown-unknown %s -o - -run-pass=register-coalescer | FileCheck %s # PR40010: DBG_VALUEs do not contribute to the liveness of virtual registers, # and the register coalescer would merge new live values on top of DBG_VALUEs, # leading to them presenting new (wrong) values to the debugger. Test that diff --git a/llvm/test/Other/machine-size-remarks.ll b/llvm/test/Other/machine-size-remarks.ll index 2a32e63a85ca..90d081ea8a60 100644 --- a/llvm/test/Other/machine-size-remarks.ll +++ b/llvm/test/Other/machine-size-remarks.ll @@ -15,7 +15,7 @@ ; CHECK: remark: <unknown>:0:0: X86 DAG->DAG Instruction Selection: Function: ; CHECK-SAME: main: MI Instruction count changed from 0 ; CHECK-SAME: to [[INIT:[1-9][0-9]*]]; Delta: [[INIT]] -; CHECK-NEXT: remark: <unknown>:0:0: Simple Register Coalescing: Function: main: +; CHECK-NEXT: remark: <unknown>:0:0: Register Coalescer: Function: main: ; CHECK-SAME: MI Instruction count changed from [[INIT]] to ; CHECK-SAME: [[FINAL:[1-9][0-9]*]]; ; CHECK-SAME: Delta: [[DELTA:-?[1-9][0-9]*]] @@ -39,7 +39,7 @@ ; CHECK-NEXT: Name: FunctionMISizeChange ; CHECK-NEXT: Function: main ; CHECK-NEXT: Args: -; CHECK-NEXT: - Pass: Simple Register Coalescing +; CHECK-NEXT: - Pass: Register Coalescer ; CHECK-NEXT: - String: ': Function: ' ; CHECK-NEXT: - Function: main ; CHECK-NEXT: - String: ': ' |
