[all-commits] [llvm/llvm-project] e9f600: [InstCombine] add tests for fneg-of-select; NFC

RotateRight via All-commits all-commits at lists.llvm.org
Mon May 17 11:54:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e9f600f20af66ce7a24adb3971453a1f7ce6bc29
      https://github.com/llvm/llvm-project/commit/e9f600f20af66ce7a24adb3971453a1f7ce6bc29
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-05-17 (Mon, 17 May 2021)

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

  Log Message:
  -----------
  [InstCombine] add tests for fneg-of-select; NFC


  Commit: 3cdd05e519ddab7d4e4864cadb977a876cd19046
      https://github.com/llvm/llvm-project/commit/3cdd05e519ddab7d4e4864cadb977a876cd19046
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-05-17 (Mon, 17 May 2021)

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

  Log Message:
  -----------
  [InstCombine] fold fnegs around select

This is one of the folds requested in:
https://llvm.org/PR39480

https://alive2.llvm.org/ce/z/NczU3V

Note - this uses the normal FMF propagation logic
(flags transfer from the final value to new/intermediate ops).
It's not clear if this matches what Alive2 implements,
so we may want to adjust one or the other.


Compare: https://github.com/llvm/llvm-project/compare/0f417789192e...3cdd05e519dd


More information about the All-commits mailing list