[all-commits] [llvm/llvm-project] af50d6: [SeparateConstOffsetFromGEP] Avoid use of Constant...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Nov 2 01:40:06 PDT 2023


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

  Changed paths:
    M llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp

  Log Message:
  -----------
  [SeparateConstOffsetFromGEP] Avoid use of ConstantExpr::getCast()

Try to constant fold, otherwise fall back to generating an
instruction.




More information about the All-commits mailing list