[all-commits] [llvm/llvm-project] dfb98d: [FuncSpec] Prevent assertion failure when no store...

Jonathon Penix via All-commits all-commits at lists.llvm.org
Tue Feb 7 13:58:21 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dfb98d8e2a3754e8e9ed66b87c6b89c634980da4
      https://github.com/llvm/llvm-project/commit/dfb98d8e2a3754e8e9ed66b87c6b89c634980da4
  Author: Jonathon Penix <jpenix at quicinc.com>
  Date:   2023-02-07 (Tue, 07 Feb 2023)

  Changed paths:
    M llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
    A llvm/test/Transforms/FunctionSpecialization/compiler-crash-promote-alloca.ll

  Log Message:
  -----------
  [FuncSpec] Prevent assertion failure when no store value is found

If the only user of the Alloca argument provided to getPromotableAlloca()
is the same as the Call argument, StoreValue is never set and results
in an assertion failure that isa<> was used on a nullptr when passed into
getCandidateConstant().

This was originally seen when trying to build SPEC 2006 416.gamess using
flang with lto enabled.

Differential Revision: https://reviews.llvm.org/D143457




More information about the All-commits mailing list