[all-commits] [llvm/llvm-project] e047a4: [ConstantFold] Avoid unary ConstantExpr::get()

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Sep 7 03:00:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e047a4ab55e5899e159a0cf196b42cb34f6ad3f0
      https://github.com/llvm/llvm-project/commit/e047a4ab55e5899e159a0cf196b42cb34f6ad3f0
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-09-07 (Wed, 07 Sep 2022)

  Changed paths:
    M llvm/lib/IR/ConstantFold.cpp

  Log Message:
  -----------
  [ConstantFold] Avoid unary ConstantExpr::get()

Call ConstantFoldUnaryInstruction() instead, to only produce a
result if it folds.




More information about the All-commits mailing list