Re: Fix ivopts address space confusion

2014-08-07 Thread Bernd Schmidt
On 08/07/2014 09:50 PM, Bernd Schmidt wrote: The following patch reworks this area - instead of trying to find a proper pointer type, it just recognizes the case where an integer is promoted to be the base, and performs all calculations in that type rather than sizetype. That also seems to be an

Fix ivopts address space confusion

2014-08-07 Thread Bernd Schmidt
This is a followup fix for the patches from PR41857, which contained a bug that is exposed by the ptx backend. The problem is finding the right pointer type for a mem_ref during ivopts. The original problem was that on spu-elf, __ea pointers are 64 bit while sizetype is 32 bit. During ivopts,