Re: [PATCH 9/9] ifcvt: Also pass reversed cc comparison.

2019-10-27 Thread Richard Sandiford
Robin Dapp writes: > When then and else are reversed, we would swap new_val and old_val. > The same has to be done for our new code paths. > Also, emit_conditional_move may perform swapping. In case we need to > swap, the cc comparison also needs to be swapped and for this we pass > the reversed

[PATCH 9/9] ifcvt: Also pass reversed cc comparison.

2019-08-02 Thread Robin Dapp
When then and else are reversed, we would swap new_val and old_val. The same has to be done for our new code paths. Also, emit_conditional_move may perform swapping. In case we need to swap, the cc comparison also needs to be swapped and for this we pass the reversed cc comparison directly. An al