]> git.ipfire.org Git - thirdparty/gcc.git/commit
Reset the range info on the moved instruction in PHIOPT
authorAndrew Pinski <apinski@marvell.com>
Sat, 19 Jun 2021 00:55:51 +0000 (17:55 -0700)
committerAndrew Pinski <apinski@marvell.com>
Sat, 26 Jun 2021 01:47:42 +0000 (18:47 -0700)
commitfbad6c62529fd2e5dcf9f7db884cee01e9dcc4bd
treea5630c578a4010307307a8f58ecba075654ad999
parent86fc076dc289f1861adebee02e6afcbaa1a2cdb6
Reset the range info on the moved instruction in PHIOPT

I had missed this when wrote the patch which allowed the
gimple to be moved from inside the conditional as it.  It
was also missed in the review.  Anyways the range information
needs to be reset for the moved gimple as it was under a
conditional and the flow has changed to be unconditional.
I have not seen any testcase in the wild that produces wrong code
yet which is why there is no testcase but this is similar to what
the other code in phiopt does so after moving those to match, there
might be some.

OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions.

gcc/ChangeLog:

* tree-ssa-phiopt.c (match_simplify_replacement): Reset
flow senatitive info on the moved ssa set.
gcc/tree-ssa-phiopt.c