[PATCH] D93707: [FPEnv] Allow fneg + strict_fsub -> strict_fadd in DAGCombiner

Andrew J Wock via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 22 07:27:02 PST 2020


ajwock created this revision.
ajwock added reviewers: qiucf, uweigand, craig.topper, andrew.w.kaylor, kpn.
Herald added subscribers: steven.zhang, pengfei, hiraditya, nemanjai.
ajwock requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

A complimentary change to D85548 <https://reviews.llvm.org/D85548>.  This change allows strict_fsub x, (fneg y) to become strict_fadd x, y while preserving chain ordering outside of these operations.

A number of tests were changed significantly because DAGCombiner optimizations cannot be disabled.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93707

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/PowerPC/vector-constrained-fp-intrinsics.ll
  llvm/test/CodeGen/SystemZ/vector-constrained-fp-intrinsics.ll
  llvm/test/CodeGen/X86/fp-intrinsics.ll
  llvm/test/CodeGen/X86/strict-fsub-combines.ll
  llvm/test/CodeGen/X86/vector-constrained-fp-intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93707.313339.patch
Type: text/x-patch
Size: 26084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201222/e2209ab9/attachment.bin>


More information about the llvm-commits mailing list