Files
clang-p2996/llvm/test/CodeGen/AMDGPU/half-alloca-promotion.ll
Shilei Tian b4df0da9e8 [AMDGPU] Fix a potential wrong return value indicating whether a pass modifies a function (#88197)
When the alloca is too big for vectorization, the function could have
already
been modified in previous iteration of the `for` loop.
2024-04-12 09:34:46 -04:00

12 lines
461 B
LLVM

; RUN: opt -S -mtriple=amdgcn-amd-amdhsa -passes="amdgpu-promote-alloca-to-vector" -o - %s
; We don't really need to check anything here because with expensive check, this
; test case crashes. The correctness of the pass is beyond the scope.
define fastcc void @foo() {
entry:
%det = alloca [4 x i32], align 16, addrspace(5)
%trkltPosTmpYZ = alloca [2 x float], align 4, addrspace(5)
%trkltCovTmp = alloca [3 x float], align 4, addrspace(5)
ret void
}