IGLP itself will be in SavedMutations via mutations added during Scheduler creation, thus falling back results in reapplying IGLP. In PostRA scheduling, if we have multiple regions with IGLP instructions, then we may have infinite loop. Disable the feature for now.
16 lines
582 B
LLVM
16 lines
582 B
LLVM
; RUN: llc -mtriple=amdgcn -mcpu=gfx908 -O3 < %s | FileCheck %s
|
|
|
|
; Test should not result in build failure
|
|
; CHECK-LABEL: shouldNotReApply
|
|
|
|
define amdgpu_kernel void @shouldNotReApply() {
|
|
entry:
|
|
tail call void @llvm.amdgcn.sched.barrier(i32 0)
|
|
store <4 x i32> zeroinitializer, ptr addrspace(3) null, align 2147483648
|
|
tail call void @llvm.amdgcn.sched.group.barrier(i32 0, i32 0, i32 0)
|
|
tail call void @llvm.amdgcn.sched.barrier(i32 0)
|
|
store i32 0, ptr addrspace(5) null, align 2147483648
|
|
tail call void @llvm.amdgcn.sched.group.barrier(i32 0, i32 0, i32 0)
|
|
ret void
|
|
}
|