Revert "[InstCombine] when calling conventions are compatible, don't convert the...
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 12 Apr 2021 20:54:26 +0000 (22:54 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 12 Apr 2021 20:55:59 +0000 (22:55 +0200)
commita3fabc79ae9d7dd76545b2abc2a3bfb66c6d3175
tree694e3378ebe1ea88e8431cca8738fec7b585bfd3
parent0deeaaca399b381ddccffde71c921e7636be7fdc
Revert "[InstCombine] when calling conventions are compatible, don't convert the call to undef idiom"

This reverts commit f4d682d6ce6c5b3a41a0acf297507c82f5c21eef.

This caused a significant compile-time regression:
https://llvm-compile-time-tracker.com/compare.php?from=4b7bad9eaea2233521a94f6b096aaa88dc584e23&to=f4d682d6ce6c5b3a41a0acf297507c82f5c21eef&stat=instructions

Possibly this is due to overeager parsing of target triples.
llvm/include/llvm/Analysis/TargetLibraryInfo.h
llvm/lib/Analysis/TargetLibraryInfo.cpp
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/call-callconv-mismatch.ll [deleted file]