commit | 30aa8b13c93211f68bb4efddd1e47817a1d107f1 | [log] [tgz] |
---|---|---|
author | Nick Lewycky <nicholas@mxc.ca> | Wed Jan 19 16:59:46 2011 +0000 |
committer | Nick Lewycky <nicholas@mxc.ca> | Wed Jan 19 16:59:46 2011 +0000 |
tree | 7ade38c10f647ed959557a49079469439b416548 | |
parent | 3abd75bf1dc96ee0cd7e8c1b8331e27672437b8b [diff] |
Add a missed SCEV fold that is required to continue analyzing the IR produced by indvars through the scev expander. trunc(add x, y) --> add(trunc x, y). Currently SCEV largely folds the other way which is probably wrong, but preserved to minimize churn. Instcombine doesn't do this fold either, demonstrating a missed optz'n opportunity on code doing add+trunc+add. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123838 91177308-0d34-0410-b5e6-96231b3b80d8