[all-commits] [llvm/llvm-project] 547515: [NFC] [DAGCombiner] Refactor bitcast folding withi...

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Mon Aug 31 09:49:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5475154865fd57ff00d20d11b32d2c18c633fb76
      https://github.com/llvm/llvm-project/commit/5475154865fd57ff00d20d11b32d2c18c633fb76
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2020-09-01 (Tue, 01 Sep 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

  Log Message:
  -----------
  [NFC] [DAGCombiner] Refactor bitcast folding within fabs/fneg

fabs and fneg share a common transformation:

(fneg (bitconvert x)) -> (bitconvert (xor x sign))
(fabs (bitconvert x)) -> (bitconvert (and x ~sign))

This patch separate the code into a single method.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D86862




More information about the All-commits mailing list