[llvm] r289447 - AMDGPU: llvm.amdgcn.interp.mov is a source of divergence
Nicolai Haehnle via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 12 08:52:20 PST 2016
Author: nha
Date: Mon Dec 12 10:52:19 2016
New Revision: 289447
URL: http://llvm.org/viewvc/llvm-project?rev=289447&view=rev
Log:
AMDGPU: llvm.amdgcn.interp.mov is a source of divergence
Summary:
While the result is constant across a single primitive, each pixel
shader wave can have pixels from multiple primitives.
Reviewers: tstellarAMD, arsenm
Subscribers: kzhuravl, wdng, yaxunl, llvm-commits, tony-tye
Differential Revision: https://reviews.llvm.org/D27572
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp?rev=289447&r1=289446&r2=289447&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp Mon Dec 12 10:52:19 2016
@@ -241,6 +241,7 @@ static bool isIntrinsicSourceOfDivergenc
case Intrinsic::amdgcn_workitem_id_x:
case Intrinsic::amdgcn_workitem_id_y:
case Intrinsic::amdgcn_workitem_id_z:
+ case Intrinsic::amdgcn_interp_mov:
case Intrinsic::amdgcn_interp_p1:
case Intrinsic::amdgcn_interp_p2:
case Intrinsic::amdgcn_mbcnt_hi:
More information about the llvm-commits
mailing list