Module Name: pcc
Committed By: ragge
Date: Thu Jul 7 07:51:07 UTC 2011
Modified Files:
pcc/cc/ccom: optim.c
Log Message:
Check for (x-y)+z where all vars are pointers to the same struct,
and remove the unneccessary mul/div. This has two advantages:
- Remove unneccessary mul+div.
- Give correct result even if some of the variables points to
unaligned structs. People may get surprised otherwise.
This fixes Jira#PCC-355 by Iain Hibbert.
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 pcc/cc/ccom/optim.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.