[PATCH] D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select
Krishna Kariya via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 27 06:22:44 PDT 2021
Krishnakariya created this revision.
Krishnakariya added reviewers: spatel, nlopes, aqjune.
Herald added a subscriber: hiraditya.
Krishnakariya requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
In this patch, the "nnan" requirement is removed for the canonicalization of select with fcmp to fabs.
(i) Removed check for nnan in fsub/fneg.
(ii) Removed check for nsz in fneg.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106872
Files:
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/test/Transforms/InstCombine/fabs.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106872.361994.patch
Type: text/x-patch
Size: 7693 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210727/03fba616/attachment.bin>
More information about the llvm-commits
mailing list