Displaying 1 result from an estimated 1 matches for "isnotusedinloop".
2017 Aug 10
4
sinking in LICM
Hi,
In the IR below, %tmp.7 and %tmp.8 are not used in loop, so we can sink
them in exit blocks. However, LICM do not handle this case because of
the check in isNotUsedInLoop() which returns false when a PHI node use
is hooked from a block inside the loop. I'm not sure if we really need
to have this check even when the PHI is outside the loop?
define i32 @test7(i32 %N, i32 %N2, i1 %C) {
Entry:
br label %Loop
Loop:
%N_addr.0.pn = phi i32 [ %dec,...