[all-commits] [llvm/llvm-project] 160fb1: [Clang][NFC] Improve generation of GEP and RecordD...

Bill Wendling via All-commits all-commits at lists.llvm.org
Thu Aug 1 12:47:18 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 160fb1121cdf703c3ef5e61fb26c5659eb581489
      https://github.com/llvm/llvm-project/commit/160fb1121cdf703c3ef5e61fb26c5659eb581489
  Author: Bill Wendling <5993918+bwendling at users.noreply.github.com>
  Date:   2024-08-01 (Thu, 01 Aug 2024)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/test/CodeGen/attr-counted-by.c

  Log Message:
  -----------
  [Clang][NFC] Improve generation of GEP and RecordDecl loop (#101434)

As with other loops, we need only look at a RecordDecl's FieldDecls.
Convert to using them. In the meantime, we can improve the generation of
the 'counted_by' FieldDecl's GEP by creating one GEP instead of a series
of GEPs.



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