summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/fold-fmul-to-neg-abs.ll
Commit message (Collapse)AuthorAgeFilesLines
* Fold fneg and fabs like multiplicationsStanislav Mekhanoshin2017-06-281-0/+37
Given no NaNs and no signed zeroes it folds: (fmul X, (select (fcmp X > 0.0), -1.0, 1.0)) -> (fneg (fabs X)) (fmul X, (select (fcmp X > 0.0), 1.0, -1.0)) -> (fabs X) Differential Revision: https://reviews.llvm.org/D34579 llvm-svn: 306592
OpenPOWER on IntegriCloud