[PATCH] D44550: [InstCombine] canonicalize fcmp+select to fabs

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 16 08:41:36 PDT 2018


spatel updated this revision to Diff 138716.
spatel added a comment.

Patch updated:

1. Require nnan for all folds.
2. Add negative test to show that we won't fold without nnan.


https://reviews.llvm.org/D44550

Files:
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  test/Transforms/InstCombine/fabs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44550.138716.patch
Type: text/x-patch
Size: 11864 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180316/95f512db/attachment.bin>


More information about the llvm-commits mailing list