[all-commits] [llvm/llvm-project] aca9c8: [InstCombine] Avoid use of ConstantExpr::getIntege...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Nov 1 04:56:49 PDT 2023


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

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/test/ThinLTO/X86/cfi-devirt.ll
    M llvm/test/Transforms/InstCombine/constant-expr-datalayout.ll

  Log Message:
  -----------
  [InstCombine] Avoid use of ConstantExpr::getIntegerCast()

Require that constants are ImmConstant for this transform, as we
may otherwise generate constant expressions, which are not
necessarily free.




More information about the All-commits mailing list