Re: [PATCH] middle-end: Fix stalled swapped condition code value [PR115836]

2024-07-10 Thread Richard Biener
On Wed, 10 Jul 2024, Uros Bizjak wrote: > emit_store_flag_1 calculates scode (swapped condition code) at the > beginning of the function from the value of code variable. However, > code variable may change before scode usage site, resulting in > invalid stalled scode value. > > Move calculation

[PATCH] middle-end: Fix stalled swapped condition code value [PR115836]

2024-07-10 Thread Uros Bizjak
emit_store_flag_1 calculates scode (swapped condition code) at the beginning of the function from the value of code variable. However, code variable may change before scode usage site, resulting in invalid stalled scode value. Move calculation of scode value just before its only usage site to avo