[PATCH] SROA: Don't insert instructions before a PHI
david.majnemer at gmail.com
Mon Sep 1 01:30:35 PDT 2014
SROA may decide that it needs to insert a bitcast and would set it's
insertion point before a PHI. This will create an invalid module
Instead, choose the first insertion point in the basic block that holds
The only testcase that I've got relies on a very specific uselist, I
haven't managed to come up with something nice and simple.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 707 bytes
Desc: not available
More information about the llvm-commits