[all-commits] [llvm/llvm-project] 242fed: [InstCombine] convert fsub nsz with fneg operand t...

RotateRight via All-commits all-commits at lists.llvm.org
Mon Jan 27 11:50:00 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 242fed9d7fb96be691de5386627ee1eaa2f62b2b
      https://github.com/llvm/llvm-project/commit/242fed9d7fb96be691de5386627ee1eaa2f62b2b
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2020-01-27 (Mon, 27 Jan 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/fsub.ll
    M llvm/test/Transforms/Reassociate/fast-basictest.ll

  Log Message:
  -----------
  [InstCombine] convert fsub nsz with fneg operand to -(X + Y)

This was noted in D72521 - we need to match fneg specifically to
consistently handle that pattern along with (-0.0 - X).




More information about the All-commits mailing list