[all-commits] [llvm/llvm-project] 3b3b83: [ConstantFold] Drop gep of gep fold entirely (#95126)

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jun 12 00:50:36 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b3b839c66dc49674fd6646650525a2173030690
      https://github.com/llvm/llvm-project/commit/3b3b839c66dc49674fd6646650525a2173030690
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-12 (Wed, 12 Jun 2024)

  Changed paths:
    M clang/test/CodeGenCUDA/managed-var.cu
    M clang/test/CodeGenCXX/2011-12-19-init-list-ctor.cpp
    M clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist-pr12086.cpp
    M clang/test/CodeGenCXX/cxx0x-initializer-stdinitializerlist.cpp
    M clang/test/CodeGenCXX/ms-inline-asm-fields.cpp
    M clang/test/OpenMP/threadprivate_codegen.cpp
    M llvm/include/llvm/IR/ConstantFold.h
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/lib/IR/ConstantFold.cpp
    M llvm/lib/IR/Constants.cpp

  Log Message:
  -----------
  [ConstantFold] Drop gep of gep fold entirely (#95126)

This is a followup to https://github.com/llvm/llvm-project/pull/93823
and drops the DataLayout-unaware GEP of GEP fold entirely. All cases are
now left to the DataLayout-aware constant folder, which will fold
everything to a single i8 GEP.

We didn't have any test coverage for this fold in LLVM, but some Clang
tests change.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list