[Bug rtl-optimization/49028] Missed optimization of pointer arithmetic

2011-05-18 Thread piotr.wyderski at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49028 --- Comment #3 from Piotr Wyderski 2011-05-18 12:02:58 UTC --- (In reply to comment #2) > Maybe we can do some generic clever tricks to (A /[ex] CST1) % CST2? > We'd like to re-associate it somehow. Wouldn't it be possible to do add the followi

[Bug rtl-optimization/49028] Missed optimization of pointer arithmetic

2011-05-18 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49028 Richard Guenther changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug rtl-optimization/49028] Missed optimization of pointer arithmetic

2011-05-17 Thread piotr.wyderski at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49028 --- Comment #1 from Piotr Wyderski 2011-05-17 17:24:03 UTC --- If I change the function to: template void R::xxx_release(void* p) { char* q = reinterpret_cast(m_Cursor); char* b = reinterpret_cast(m_Data); q = ((q + sizeof(v