Skip to content

Commit d97ad29

Browse files
committed
use reflect dce instead of simplifycfg
1 parent 32c5c40 commit d97ad29

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/test/CodeGen/NVPTX/nvvm-reflect-opaque.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
; RUN: cat %s > %t.noftz
55
; RUN: echo '!0 = !{i32 4, !"nvvm-reflect-ftz", i32 0}' >> %t.noftz
6-
; RUN: opt %t.noftz -S -mtriple=nvptx-nvidia-cuda -passes='nvvm-reflect' \
6+
; RUN: opt %t.noftz -S -mtriple=nvptx-nvidia-cuda -passes='nvvm-reflect' -nvvm-reflect-dce \
77
; RUN: | FileCheck %s --check-prefix=USE_FTZ_0 --check-prefix=CHECK
88

99
; RUN: cat %s > %t.ftz
1010
; RUN: echo '!0 = !{i32 4, !"nvvm-reflect-ftz", i32 1}' >> %t.ftz
11-
; RUN: opt %t.ftz -S -mtriple=nvptx-nvidia-cuda -passes='nvvm-reflect' \
11+
; RUN: opt %t.ftz -S -mtriple=nvptx-nvidia-cuda -passes='nvvm-reflect' -nvvm-reflect-dce \
1212
; RUN: | FileCheck %s --check-prefix=USE_FTZ_1 --check-prefix=CHECK
1313

1414
@str = private unnamed_addr addrspace(4) constant [11 x i8] c"__CUDA_FTZ\00"

llvm/test/CodeGen/NVPTX/nvvm-reflect.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
; RUN: cat %s > %t.noftz
55
; RUN: echo '!0 = !{i32 4, !"nvvm-reflect-ftz", i32 0}' >> %t.noftz
6-
; RUN: opt %t.noftz -S -mtriple=nvptx-nvidia-cuda -passes='nvvm-reflect' \
6+
; RUN: opt %t.noftz -S -mtriple=nvptx-nvidia-cuda -passes='nvvm-reflect' -nvvm-reflect-dce \
77
; RUN: | FileCheck %s --check-prefix=USE_FTZ_0 --check-prefix=CHECK
88

99
; RUN: cat %s > %t.ftz
1010
; RUN: echo '!0 = !{i32 4, !"nvvm-reflect-ftz", i32 1}' >> %t.ftz
11-
; RUN: opt %t.ftz -S -mtriple=nvptx-nvidia-cuda -passes='nvvm-reflect' \
11+
; RUN: opt %t.ftz -S -mtriple=nvptx-nvidia-cuda -passes='nvvm-reflect' -nvvm-reflect-dce \
1212
; RUN: | FileCheck %s --check-prefix=USE_FTZ_1 --check-prefix=CHECK
1313

1414
@str = private unnamed_addr addrspace(4) constant [11 x i8] c"__CUDA_FTZ\00"

0 commit comments

Comments
 (0)