[all-commits] [llvm/llvm-project] de11de: [InstrProf] Use i32 for GEP index from lowering ll...

Ellis Hoag via All-commits all-commits at lists.llvm.org
Fri Nov 19 15:45:50 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de11de308b6480fc35d901c7104f46918674418c
      https://github.com/llvm/llvm-project/commit/de11de308b6480fc35d901c7104f46918674418c
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2021-11-19 (Fri, 19 Nov 2021)

  Changed paths:
    M clang/test/CodeGen/profile-filter.c
    M clang/test/Profile/branch-logical-mixed.cpp
    M clang/test/Profile/c-captured.c
    M clang/test/Profile/c-general.c
    M clang/test/Profile/c-ternary.c
    M clang/test/Profile/cxx-class.cpp
    M clang/test/Profile/cxx-lambda.cpp
    M clang/test/Profile/cxx-rangefor.cpp
    M clang/test/Profile/cxx-stmt-initializers.cpp
    M clang/test/Profile/cxx-templates.cpp
    M clang/test/Profile/cxx-throws.cpp
    M clang/test/Profile/objc-general.m
    M llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
    M llvm/test/Instrumentation/InstrProfiling/atomic-updates.ll
    M llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll
    M llvm/test/Transforms/PGOProfile/counter_promo_exit_catchswitch.ll
    M llvm/test/Transforms/PGOProfile/instr_entry_bb.ll

  Log Message:
  -----------
  [InstrProf] Use i32 for GEP index from lowering llvm.instrprof.increment

The `llvm.instrprof.increment` intrinsic uses `i32` for the index. We should use this same type for the index into the GEP instructions.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D114268




More information about the All-commits mailing list