[all-commits] [llvm/llvm-project] 788b08: [InstCombine] add test for fneg of select with FMF...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Thu Feb 24 07:44:15 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 788b08a58cef5888321bb74a57f8fcbf795fd47b
      https://github.com/llvm/llvm-project/commit/788b08a58cef5888321bb74a57f8fcbf795fd47b
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-02-24 (Thu, 24 Feb 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/fneg.ll

  Log Message:
  -----------
  [InstCombine] add test for fneg of select with FMF; NFC


  Commit: 5379f76e6328ecfa2e15b3c7ab32c4a053f4a663
      https://github.com/llvm/llvm-project/commit/5379f76e6328ecfa2e15b3c7ab32c4a053f4a663
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-02-24 (Thu, 24 Feb 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/fneg.ll

  Log Message:
  -----------
  [InstCombine] try harder to preserve 'nsz' in fneg-of-select transform

The corner case where 'nsz' needs to be removed is very narrow
as discussed here:
https://reviews.llvm.org/rG3cdd05e519dd

If the select condition is not undef, there's no problem with
propagating 'nsz':
https://alive2.llvm.org/ce/z/4GWJdq


Compare: https://github.com/llvm/llvm-project/compare/719bac55dff1...5379f76e6328


More information about the All-commits mailing list