| commit | 57243da70f5a4b6a29566c38a2a2de0b4e1c7d16 | [log] [tgz] |
|---|---|---|
| author | Andrew Trick <atrick@apple.com> | Fri Oct 25 21:35:56 2013 +0000 |
| committer | Andrew Trick <atrick@apple.com> | Fri Oct 25 21:35:56 2013 +0000 |
| tree | 7f864d5a4c0bc7e95743c9bcea624ced2a2cf7ed | |
| parent | 29abce3189af936b74f880ab1ba7114eb6de7ac9 [diff] |
Fix SCEVExpander: don't try to expand quadratic recurrences outside a loop. Partial fix for PR17459: wrong code at -O3 on x86_64-linux-gnu (affecting trunk and 3.3) When SCEV expands a recurrence outside of a loop it attempts to scale by the stride of the recurrence. Chained recurrences don't work that way. We could compute binomial coefficients, but would hve to guarantee that the chained AddRec's are in a perfectly reduced form. llvm-svn: 193438