minglotus-6 wrote:
> > . For IR PGO, there is basically no need to do so as the instrumentation
> > and profile-use should be in-sync. For front-end instrumentation, there
> > seem to be some use cases to use out of sync profile:
> > https://reviews.llvm.org/D51240.
>
> Thanks for double chec
david-xl wrote:
> > > . For IR PGO, there is basically no need to do so as the instrumentation
> > > and profile-use should be in-sync. For front-end instrumentation, there
> > > seem to be some use cases to use out of sync profile:
> > > https://reviews.llvm.org/D51240.
> >
> >
> > Thanks f
@@ -144,25 +145,27 @@ void GlobalObject::copyAttributesFrom(const GlobalObject
*Src) {
std::string GlobalValue::getGlobalIdentifier(StringRef Name,
GlobalValue::LinkageTypes Linkage,
Stri
@@ -0,0 +1,97 @@
+// This is a regression test for ThinLTO indirect-call-promotion when candidate
+// callees need to be imported from another IR module. In the C++ test case,
+// `main` calls `global_func` which is defined in another module. `global_func`
+// has two indirect ca