[all-commits] [llvm/llvm-project] 12f39e: [InstSimplify] fold copysign with negated operand

RotateRight via All-commits all-commits at lists.llvm.org
Sun Dec 8 07:09:05 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 12f39e0fede92ca04c811660530e750585124ed2
      https://github.com/llvm/llvm-project/commit/12f39e0fede92ca04c811660530e750585124ed2
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2019-12-08 (Sun, 08 Dec 2019)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstSimplify/call.ll

  Log Message:
  -----------
  [InstSimplify] fold copysign with negated operand

This is another transform suggested in PR44153:
https://bugs.llvm.org/show_bug.cgi?id=44153

The backend for some targets already manages to get
this if it converts copysign to bitwise logic.




More information about the All-commits mailing list