[all-commits] [llvm/llvm-project] 29c6bf: [InstCombine] Avoid ConstantExpr::get() call

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29c6bf45c37a3a0c2b37a6034ee4685bfa741b82
      https://github.com/llvm/llvm-project/commit/29c6bf45c37a3a0c2b37a6034ee4685bfa741b82
  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() call

Avoid calling ConstantExpr::get() for associative/commutative
binops, call ConstantFoldBinaryOpOperands() instead. We only
want to perform the reassociation of the constants actually fold.




More information about the All-commits mailing list