[all-commits] [llvm/llvm-project] 632594: [InstCombine] Avoid ConstantExpr::get()

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jul 20 06:24:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 632594fcb1c9b6a25da32a58cd7364ce02aec745
      https://github.com/llvm/llvm-project/commit/632594fcb1c9b6a25da32a58cd7364ce02aec745
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-07-20 (Thu, 20 Jul 2023)

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

  Log Message:
  -----------
  [InstCombine] Avoid ConstantExpr::get()

Use ConstantFoldBinaryOpOperands() instead of ConstantExpr::get().
This will continue working with binary operands that are not
supported as constant expressions.




More information about the All-commits mailing list