This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 12/09/2010 05:45 PM, Andrew Stubbs wrote:The first problem is that CSE cannot determine that the result is constant because the auto-variable is implicitly initialized. I have solved this by moving up the init-regs pass to before cse2. It might be better to move it before cse1, but that's a bigger change, so I wasn't sure?
I think that would be fine independent of this change.
The second problem is that the pattern match for ZERO_EXTRACT requires that the operand is an immediate constant, which is never the case on ARM (and presumably is only the case with a limited range of inputs even on other targets). I have added code to detect known-constant input registers.
Since I can choose, I prefer Chung-Lin's patch. :)
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |