Re: [PATCH] ifcvt: Don't speculation move inline-asm [PR102150]

2025-02-12 Thread Richard Biener
On Wed, Feb 12, 2025 at 5:39 AM Andrew Pinski wrote: > > So unlike loop invariant motion, moving an inline-asm out of an > if is not always profitable and the cost estimate for the instruction > inside inline-asm is unknown. > > This is a regression from GCC 4.6 which didn't speculatively move inl

[PATCH] ifcvt: Don't speculation move inline-asm [PR102150]

2025-02-11 Thread Andrew Pinski
So unlike loop invariant motion, moving an inline-asm out of an if is not always profitable and the cost estimate for the instruction inside inline-asm is unknown. This is a regression from GCC 4.6 which didn't speculatively move inline-asm as far as I can tell. Bootstrapped and tested on x86_64-l