Re: [PATCH] Fix avoid_constant_pool_reference (PR middle-end/77377)

2016-08-29 Thread Richard Biener
On August 29, 2016 9:43:50 PM GMT+02:00, Jakub Jelinek wrote: >Hi! > >Returning c from avoid_constant_pool_reference for constant pool >references >is only fine if the modes match and offset is zero, otherwise if the >offset >is sane, we can try to simplify it as subreg. But, returning c for out

[PATCH] Fix avoid_constant_pool_reference (PR middle-end/77377)

2016-08-29 Thread Jakub Jelinek
Hi! Returning c from avoid_constant_pool_reference for constant pool references is only fine if the modes match and offset is zero, otherwise if the offset is sane, we can try to simplify it as subreg. But, returning c for out of bounds offsets is always wrong, and especially if the mode doesn't