Skip to content

Commit 6dbcb05

Browse files
committed
Remove redundant mem2reg, SROA already invokes it
1 parent 1ecc06b commit 6dbcb05

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

clang/test/CodeGen/cx-complex-range-real.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
22
// RUN: %clang_cc1 %s -O0 -disable-O0-optnone -emit-llvm -triple x86_64-unknown-unknown \
3-
// RUN: -o - | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=FULL
3+
// RUN: -o - | opt -S -passes=sroa | FileCheck %s --check-prefix=FULL
44

55
// RUN: %clang_cc1 %s -O0 -disable-O0-optnone -emit-llvm -triple x86_64-unknown-unknown \
6-
// RUN: -complex-range=improved -o - | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=IMPRVD
6+
// RUN: -complex-range=improved -o - | opt -S -passes=sroa | FileCheck %s --check-prefix=IMPRVD
77

88
// RUN: %clang_cc1 %s -O0 -disable-O0-optnone -emit-llvm -triple x86_64-unknown-unknown \
9-
// RUN: -complex-range=promoted -o - | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=PRMTD
9+
// RUN: -complex-range=promoted -o - | opt -S -passes=sroa | FileCheck %s --check-prefix=PRMTD
1010

1111
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -complex-range=promoted \
1212
// RUN: -ffp-contract=off -frounding-math -ffp-exception-behavior=strict -disable-O0-optnone \
13-
// RUN: -emit-llvm -o - %s | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=PRMTD_STRICT
13+
// RUN: -emit-llvm -o - %s | opt -S -passes=sroa | FileCheck %s --check-prefix=PRMTD_STRICT
1414

1515
// FULL-LABEL: define dso_local <2 x float> @mulaf(
1616
// FULL-SAME: <2 x float> noundef [[A_COERCE:%.*]], float noundef [[B:%.*]]) #[[ATTR0:[0-9]+]] {

clang/test/CodeGen/cx-complex-range.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 4
22
// RUN: %clang_cc1 %s -O0 -disable-O0-optnone -emit-llvm -triple x86_64-unknown-unknown \
3-
// RUN: -o - | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=FULL
3+
// RUN: -o - | opt -S -passes=sroa | FileCheck %s --check-prefix=FULL
44

55
// RUN: %clang_cc1 %s -O0 -disable-O0-optnone -emit-llvm -triple x86_64-unknown-unknown \
6-
// RUN: -complex-range=basic -o - | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=BASIC
6+
// RUN: -complex-range=basic -o - | opt -S -passes=sroa | FileCheck %s --check-prefix=BASIC
77

88
// RUN: %clang_cc1 %s -O0 -disable-O0-optnone -emit-llvm -triple x86_64-unknown-unknown \
9-
// RUN: -fno-cx-limited-range -o - | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=FULL
9+
// RUN: -fno-cx-limited-range -o - | opt -S -passes=sroa | FileCheck %s --check-prefix=FULL
1010

1111
// RUN: %clang_cc1 %s -O0 -disable-O0-optnone -emit-llvm -triple x86_64-unknown-unknown \
12-
// RUN: -complex-range=improved -o - | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=IMPRVD
12+
// RUN: -complex-range=improved -o - | opt -S -passes=sroa | FileCheck %s --check-prefix=IMPRVD
1313

1414
// RUN: %clang_cc1 %s -O0 -disable-O0-optnone -emit-llvm -triple x86_64-unknown-unknown \
15-
// RUN: -complex-range=promoted -o - | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=PRMTD
15+
// RUN: -complex-range=promoted -o - | opt -S -passes=sroa | FileCheck %s --check-prefix=PRMTD
1616

1717
// RUN: %clang_cc1 %s -O0 -disable-O0-optnone -emit-llvm -triple x86_64-unknown-unknown \
18-
// RUN: -complex-range=full -o - | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=FULL
18+
// RUN: -complex-range=full -o - | opt -S -passes=sroa | FileCheck %s --check-prefix=FULL
1919

2020
// RUN: %clang_cc1 -triple x86_64-windows-pc -complex-range=promoted -disable-O0-optnone \
21-
// RUN: -emit-llvm -o - %s | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=X86WINPRMTD
21+
// RUN: -emit-llvm -o - %s | opt -S -passes=sroa | FileCheck %s --check-prefix=X86WINPRMTD
2222

2323
// RUN: %clang_cc1 -triple=avr-unknown-unknown -mdouble=32 \
2424
// RUN: -complex-range=promoted -disable-O0-optnone -emit-llvm -o - %s \
25-
// RUN: | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=AVRFP32
25+
// RUN: | opt -S -passes=sroa | FileCheck %s --check-prefix=AVRFP32
2626

2727
// RUN: %clang_cc1 -triple=avr-unknown-unknown -mdouble=64 \
2828
// RUN: -complex-range=promoted -disable-O0-optnone -emit-llvm -o - %s \
29-
// RUN: | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=AVRFP64
29+
// RUN: | opt -S -passes=sroa | FileCheck %s --check-prefix=AVRFP64
3030

3131
// Fast math
3232
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu \
3333
// RUN: -ffast-math -complex-range=basic -disable-O0-optnone -emit-llvm -o - %s \
34-
// RUN: | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=BASIC_FAST
34+
// RUN: | opt -S -passes=sroa | FileCheck %s --check-prefix=BASIC_FAST
3535

3636
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu \
3737
// RUN: -ffast-math -complex-range=full -disable-O0-optnone -emit-llvm -o - %s \
38-
// RUN: | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=FULL_FAST
38+
// RUN: | opt -S -passes=sroa | FileCheck %s --check-prefix=FULL_FAST
3939

4040
// RUN: %clang_cc1 %s -O0 -disable-O0-optnone -emit-llvm -triple x86_64-unknown-unknown \
41-
// RUN: -fno-cx-fortran-rules -o - | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=FULL
41+
// RUN: -fno-cx-fortran-rules -o - | opt -S -passes=sroa | FileCheck %s --check-prefix=FULL
4242

4343
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu \
4444
// RUN: -ffast-math -complex-range=improved -disable-O0-optnone -emit-llvm -o - %s \
45-
// RUN: | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=IMPRVD_FAST
45+
// RUN: | opt -S -passes=sroa | FileCheck %s --check-prefix=IMPRVD_FAST
4646

4747
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu \
4848
// RUN: -ffast-math -complex-range=promoted -disable-O0-optnone -emit-llvm -o - %s \
49-
// RUN: | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=PRMTD_FAST
49+
// RUN: | opt -S -passes=sroa | FileCheck %s --check-prefix=PRMTD_FAST
5050

5151
// strict math mode
5252
// RUN: %clang_cc1 -triple x86_64-windows-pc -complex-range=promoted \
5353
// RUN: -ffp-contract=off -frounding-math -ffp-exception-behavior=strict -disable-O0-optnone \
54-
// RUN: -emit-llvm -o - %s | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=X86WINPRMTD_STRICT
54+
// RUN: -emit-llvm -o - %s | opt -S -passes=sroa | FileCheck %s --check-prefix=X86WINPRMTD_STRICT
5555

5656
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -complex-range=promoted \
5757
// RUN: -ffp-contract=off -frounding-math -ffp-exception-behavior=strict -disable-O0-optnone \
58-
// RUN: -emit-llvm -o - %s | opt -S -passes=mem2reg,sroa | FileCheck %s --check-prefix=PRMTD_STRICT
58+
// RUN: -emit-llvm -o - %s | opt -S -passes=sroa | FileCheck %s --check-prefix=PRMTD_STRICT
5959

6060
// FULL-LABEL: define dso_local <2 x float> @divf(
6161
// FULL-SAME: <2 x float> noundef [[A_COERCE:%.*]], <2 x float> noundef [[B_COERCE:%.*]]) #[[ATTR0:[0-9]+]] {

0 commit comments

Comments
 (0)