blob: 12506d17ef3d923e223bd5d72e4f37e822029ae2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -mtriple=amdgcn-amd-amdhsa -passes=instcombine -S | FileCheck %s
; Optimize the intrinsic away if the argument is uniform.
define i32 @test_constant() {
; CHECK-LABEL: @test_constant(
; CHECK-NEXT: ret i32 99
;
%call = call i32 @llvm.amdgcn.permlane64(i32 99)
ret i32 %call
}
declare i32 @llvm.amdgcn.permlane64(i32)
|