[PGO][indirect-call-promotion] Add extra parameter check for musttail callsite
authorRong Xu <xur@google.com>
Fri, 2 Dec 2022 18:22:07 +0000 (10:22 -0800)
committerRong Xu <xur@google.com>
Fri, 2 Dec 2022 18:50:55 +0000 (10:50 -0800)
commit0b2473936d3660ad7d2e0cd2e26ca8dfdde588de
treed1b2a588d5ce3f4b1265c5ce54f9ae1597b405d2
parent50fd6604b76e5fcf5d481a4a551efd50398d9abe
[PGO][indirect-call-promotion] Add extra parameter check for musttail callsite

Indirect-call-promtion for musttail callsite needs stricter type check
with parameter. This patch adds the needed extra parameter type check.

Differential Revision: https://reviews.llvm.org/D139051
llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
llvm/test/Transforms/PGOProfile/indirect_call_promotion_musttail_typecheck.ll [new file with mode: 0644]