[all-commits] [llvm/llvm-project] 8c49b0: [GlobalOpt] Don't remove inalloca from varargs fun...

aeubanks via All-commits all-commits at lists.llvm.org
Tue Nov 1 13:04:42 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c49b01a1ee051ab2c09be4cffc83656ccc0fbe6
      https://github.com/llvm/llvm-project/commit/8c49b01a1ee051ab2c09be4cffc83656ccc0fbe6
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/GlobalOpt.cpp
    A llvm/test/Transforms/GlobalOpt/inalloca-varargs.ll

  Log Message:
  -----------
  [GlobalOpt] Don't remove inalloca from varargs functions

Varargs and inalloca have a weird interaction where varargs are actually
passed via the inalloca alloca. Removing inalloca breaks the varargs
because they're still not passed as separate arguments.

Fixes #58718

Reviewed By: rnk

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




More information about the All-commits mailing list