[FuncSpec] Remove unnecessary function pointer type check
authorNikita Popov <npopov@redhat.com>
Thu, 3 Mar 2022 14:18:15 +0000 (15:18 +0100)
committerNikita Popov <npopov@redhat.com>
Thu, 3 Mar 2022 14:20:11 +0000 (15:20 +0100)
commit1b6663a10458ab2bb242f8f28940dd3ea1271e70
treebd6df4a428573c1fc60d0a8f3807365d5f46196c
parent0f261256e01f55aac04cf271f238e36fda8013d5
[FuncSpec] Remove unnecessary function pointer type check

We will check a bit later that the constant is in fact a function,
so the separate check for a function pointer type is largely
redunant. Also simplify the cast stripping with
stripPointerCasts().
llvm/lib/Transforms/IPO/FunctionSpecialization.cpp