[all-commits] [llvm/llvm-project] 57384a: [ConstantFold] Avoid creating undesirable cast exp...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Nov 1 08:51:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57384aeb3743dc2b5540cedd965977b6a67ae01f
      https://github.com/llvm/llvm-project/commit/57384aeb3743dc2b5540cedd965977b6a67ae01f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-11-01 (Wed, 01 Nov 2023)

  Changed paths:
    M llvm/lib/IR/ConstantFold.cpp
    M llvm/test/CodeGen/AArch64/arm64-codegen-prepare-extload.ll
    M llvm/test/CodeGen/X86/codegen-prepare-extload.ll

  Log Message:
  -----------
  [ConstantFold] Avoid creating undesirable cast expressions

Similar to what we do for binops, for undesirable casts we should
call the constant folding API instead of the constant expr API,
to avoid indirect creation of undesirable cast ops.




More information about the All-commits mailing list