------- Additional Comments From rth at gcc dot gnu dot org 2005-01-18 11:20 ------- This doesn't really have anything to do with sse. We have a value in "f" and decide it should be in "x", and discount the "m" alternative. Could be fixed by having reload look at "m" when considering secondary reloads.
It's sure to be mildly complicated by wanting to not keep the value in memory if it could be inherited by multiple instructions, but it's definitely a win for x86 code density to avoid explicit loads when the value is otherwise unused. The only target solution I can think of is peepholes. But we could easily need Quite A Lot of them in the x86 port, so I don't think this an ideal solution. -- What |Removed |Added ---------------------------------------------------------------------------- Component|target |rtl-optimization Keywords|ssemmx | Summary|Non-optimal code with |secondary reloads don't |cvttss2si |consider "m" alternatives http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19398