Skip to content

Commit 3c42596

Browse files
wenju-henikic
andauthored
Update llvm/test/Transforms/InstCombine/AMDGPU/addrspacecast.ll
Co-authored-by: Nikita Popov <[email protected]>
1 parent b35f28c commit 3c42596

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/test/Transforms/InstCombine/AMDGPU/addrspacecast.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
22
; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -passes=instcombine %s | FileCheck %s
33

4-
; Check that `select B, true, C` isn't optimized to `or B, C`.
4+
; Check that `select B, true, C` isn't optimized to `or B, C`,
5+
; because the invalid addrspacecast %asc.shared may introduce poison.
56
define i1 @not_fold_select(ptr addrspace(1) noundef %x) {
67
; CHECK-LABEL: define i1 @not_fold_select(
78
; CHECK-SAME: ptr addrspace(1) noundef [[X:%.*]]) {

0 commit comments

Comments
 (0)