[all-commits] [llvm/llvm-project] 256bbd: [DAG] visitFCEIL/FTRUNC/FFLOOR/FNEG - use FoldCons...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Oct 17 08:54:18 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 256bbdb3f642c37268d6fa5dc35e01cd27a67b61
      https://github.com/llvm/llvm-project/commit/256bbdb3f642c37268d6fa5dc35e01cd27a67b61
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-10-17 (Thu, 17 Oct 2024)

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

  Log Message:
  -----------
  [DAG] visitFCEIL/FTRUNC/FFLOOR/FNEG - use FoldConstantArithmetic to attempt to constant fold

Don't rely on isConstantFPBuildVectorOrConstantFP followed by getNode() will constant fold - FoldConstantArithmetic will do all of this for us.

Cleanup for #112682



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list