[Bug tree-optimization/71383] Misoptimized branch with inline assembly code.
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 2 12:44:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71383
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-06-02
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Strictly speaking your asm should be incorrect as GCC does not consider
it to use/clobber "local" global memory.
That manifests itself in IPA reference computing that bar is not accessing
'a' and thus we can optimize the load across the call.
So, kind-of confirmed.
More information about the Gcc-bugs
mailing list