[PATCH] Fix PR58742

2014-01-29 Thread Richard Biener
This adds GIMPLE combining for /[ex] X * X as it appears for pointer subtraction / addition combo. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2014-01-29 Richard Biener PR tree-optimization/58742 * tree-ssa-forwprop.c (associate_plusminus): Return

[PATCH] Fix PR58742

2014-01-28 Thread Richard Biener
This implements simple pattern matching for folding of pointer subtraction GIMPLE IL which is performed in an integer type. It handles the simple case, like the others in associate_plusminus (cases involving cancellation). Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard.