[PATCH] D16781: AMDGPU: Fix breaking IR on instructions with multiple pointer operands

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 1 12:21:52 PST 2016

arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added a subscriber: arsenm.

The promote alloca pass would attempt to promote an alloca with
a select, icmp, or phi user, even though the other operand was
from a non-promotable source, producing a select on two different
pointer types.
Only do this if we know that both operands derive from the same
alloca. In the future we should be able to relax this to an alloca 
which will also be promoted.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16781.46565.patch
Type: text/x-patch
Size: 18438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160201/e8d1d95b/attachment.bin>

More information about the llvm-commits mailing list