[all-commits] [llvm/llvm-project] 5eaeee: [InstCombine] Avoid ConstantExpr::getFNeg() calls ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jul 29 07:02:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5eaeeed8cbf5896ab147eaf0e7e29211fbcde2ff
      https://github.com/llvm/llvm-project/commit/5eaeeed8cbf5896ab147eaf0e7e29211fbcde2ff
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-07-29 (Fri, 29 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

  Log Message:
  -----------
  [InstCombine] Avoid ConstantExpr::getFNeg() calls (NFCI)

Instead call the constant folding API, which can fail. For now,
this should be NFC, as we still allow the creation of fneg
constant expressions.




More information about the All-commits mailing list