[all-commits] [llvm/llvm-project] 1b6663: [FuncSpec] Remove unnecessary function pointer typ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Mar 3 06:23:52 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b6663a10458ab2bb242f8f28940dd3ea1271e70
      https://github.com/llvm/llvm-project/commit/1b6663a10458ab2bb242f8f28940dd3ea1271e70
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/FunctionSpecialization.cpp

  Log Message:
  -----------
  [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().




More information about the All-commits mailing list