commit | a754032661d318d035863ec0deef96d2be6d6bae | [log] [tgz] |
---|---|---|
author | Matt Arsenault <Matthew.Arsenault@amd.com> | Fri Mar 17 20:52:21 2017 +0000 |
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | Fri Mar 17 20:52:21 2017 +0000 |
tree | cbb05f349a10741228b924aa69e4d38efa3629d7 | |
parent | 6cfe632b603ed259e41b24a100f2a6ac3a45ef1a [diff] |
AMDGPU: Fix handling of constant phi input loop conditions 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298121 91177308-0d34-0410-b5e6-96231b3b80d8