[all-commits] [llvm/llvm-project] d28705: [InstCombine] Avoid ConstantExpr::get() in vector ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jul 8 08:20:30 PDT 2022


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

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

  Log Message:
  -----------
  [InstCombine] Avoid ConstantExpr::get() in vector binop fold (NFCI)

Use the ConstantFoldBinaryOpOperands() API instead. This case
would bail out on a non-folded result anyway.




More information about the All-commits mailing list