Re: PR 68432: Add a target hook to control size/speed optab choices

2015-12-01 Thread Bernd Schmidt
On 12/01/2015 10:15 PM, Richard Sandiford wrote: [This is a less invasive fix for the PR, without any changes to the .md attribute handling] As a minimal fix I like this much better. I'll ok it under the condition that you have verified in all ports that size/speed issues are the only reaso

PR 68432: Add a target hook to control size/speed optab choices

2015-12-01 Thread Richard Sandiford
[This is a less invasive fix for the PR, without any changes to the .md attribute handling] The problem in the PR is that some i386 optabs FAIL when optimising for size rather than speed. The gimple level generally needs access to this information before calling the generator, so this patch adds