[PATCH][2/3] Fix PR54733 Optimize endian independent load/store

Marc Glisse marc.glisse@inria.fr
Wed Apr 2 06:17:00 GMT 2014


On Wed, 2 Apr 2014, Thomas Preud'homme wrote:

> Note that as it stands the patch does not work for arrays indexed with 
> variable (such a tab[a] || (tab[a+1] << 8)) because fold_const does not 
> fold (a + 1) - a.

Uh? It does fold a+1-a for me. What it doesn't do is look through the 
definition of b in b-a. Richard+GSoC will supposedly soon provide a 
function that does that.

-- 
Marc Glisse



More information about the Gcc-patches mailing list