[PATCH] D31000: AMDGPU: Fix handling of constant phi input loop conditions

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 15 13:59:51 PDT 2017


arsenm created this revision.
Herald added subscribers: tpr, dstuttard, tony-tye, yaxunl, nhaehnle, wdng, kzhuravl.

If the loop condition was an i1 phi with a constantexpr input, this
would add a loop intrinsic fed by a phi dependent on a call to
if.break in the same block. Insert the call in the loop header.


https://reviews.llvm.org/D31000

Files:
  lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
  test/CodeGen/AMDGPU/loop_break.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31000.91930.patch
Type: text/x-patch
Size: 11557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170315/90031df8/attachment.bin>


More information about the llvm-commits mailing list