[NFC] Reduce fragility of swdev503538-... test. (#176302)

The original test was created in PR #120815, but it depends on -O0 and
implicitly uses DAGCombiner (that is switched on by default for -O0).
The patch reduces fragility of the test and removes dependency on
DAGCombiner.
This commit is contained in:
Daniil Fukalov 2026-01-30 18:46:05 +01:00 committed by GitHub
parent 09b62ed0c9
commit e79bb02cb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,8 +11,8 @@
define i32 @move_to_valu_assert_srd_is_physreg_swdev503538(ptr addrspace(1) %ptr) {
entry:
%idx = load i32, ptr addrspace(1) %ptr, align 4
%zero = extractelement <4 x i32> zeroinitializer, i32 %idx
%alloca = alloca [2048 x i8], i32 %zero, align 8, addrspace(5)
%mask = and i32 %idx, 0
%alloca = alloca [2048 x i8], i32 %mask, align 8, addrspace(5)
%ld = load i32, ptr addrspace(5) %alloca, align 8
call void @llvm.memset.p5.i32(ptr addrspace(5) %alloca, i8 0, i32 2048, i1 false)
ret i32 %ld