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