diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2014-09-11 15:45:27 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2014-09-11 15:45:27 +0000 |
| commit | 7bd228a82ec666710e05e3a895a9130705f53f40 (patch) | |
| tree | f436788f1f5c84eb35fdd2ee59559512b2a1e916 /llvm/examples/ModuleMaker | |
| parent | 1ac0ec86b7e2ee499cc1bbf3916cd36aac6dd5ee (diff) | |
| download | bcm5719-llvm-7bd228a82ec666710e05e3a895a9130705f53f40.tar.gz bcm5719-llvm-7bd228a82ec666710e05e3a895a9130705f53f40.zip | |
Combine fmul vector FP constants when unsafe math is allowed.
This is an extension of the change made with r215820:
http://llvm.org/viewvc/llvm-project?view=revision&revision=215820
That patch allowed combining of splatted vector FP constants that are multiplied.
This patch allows combining non-uniform vector FP constants too by relaxing the
check on the type of vector. Also, canonicalize a vector fmul in the
same way that we already do for scalars - if only one operand of the fmul is a
constant, make it operand 1. Otherwise, we miss potential folds.
This fold is also done by -instcombine, but it's possible that extra
fmuls may have been generated during lowering.
Differential Revision: http://reviews.llvm.org/D5254
llvm-svn: 217599
Diffstat (limited to 'llvm/examples/ModuleMaker')
0 files changed, 0 insertions, 0 deletions

