aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.cc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-11-30 13:12:13 -0800
committerAndrew Pinski <quic_apinski@quicinc.com>2024-11-30 23:34:31 -0800
commit24949e640307f91a831e0fb699fea85fb9276a09 (patch)
tree5d9a4efc8f2acc3182776b5066e66f69c8f08127 /gcc/tree-ssa-phiopt.cc
parente0ffe6620cc29154ef84dbc2ecc44d6d98a2e5c5 (diff)
downloadgcc-24949e640307f91a831e0fb699fea85fb9276a09.zip
gcc-24949e640307f91a831e0fb699fea85fb9276a09.tar.gz
gcc-24949e640307f91a831e0fb699fea85fb9276a09.tar.bz2
gimple-lim: Reuse boolean var when moving PHI
While looking into PR 117859, I noticed that LIM sometimes would produce `bool_var2 = bool_var1 != 0` instead of just using bool_var2. This patch allows LIM to reuse bool_var1 in the place where bool_var2 was going to be used. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * tree-ssa-loop-im.cc (move_computations_worker): While moving phi, reuse the lhs of the conditional if it is a boolean type. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions