LGTM, will push it later, thanks.
> -Original Message-
> From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of
> Ruiling Song
> Sent: Monday, July 6, 2015 14:40
> To: beignet@lists.freedesktop.org
> Cc: Song, Ruiling
> Subject: [Beignet] [PATCH
This is special optimization for below situation:
bb1:
...
bb2:
x = phi [x1, bb1], [x2, bb2]
x2 = x+1;
after de-ssa:
bb2:
mov x, x-copy
add x2, x, 1
mov x-copy, x2
obviously x2, x-copy and x2 can be mapped to same virtual register.
v2:
only coaleasce if the source register