[PATCH] D99773: [InstCombine] when calling conventions are compatible, don't convert the call to undef idiom

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 12 14:07:22 PDT 2021


nikic added a comment.

I've temporarily reverted this change because it causes a significant compile-time regression, see https://llvm-compile-time-tracker.com/compare.php?from=4b7bad9eaea2233521a94f6b096aaa88dc584e23&to=f4d682d6ce6c5b3a41a0acf297507c82f5c21eef&stat=instructions. I assume that wasn't intentional.

Looking at the code, what stands out to me is that you're now parsing the target triple eagerly, even though it is only needed if AAPCS is actually involved. Passing it into the function as StringRef instead of Triple is probably sufficient. (More generally, it might make sense to store a parsed target triple in the module...)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99773/new/

https://reviews.llvm.org/D99773



More information about the llvm-commits mailing list