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

aeubanks via All-commits all-commits at lists.llvm.org
Tue Nov 15 15:41:06 PST 2022


  Branch: refs/heads/release/15.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 68799e789fc5f2a5ff25beffa4dc8828780c08fb
      https://github.com/llvm/llvm-project/commit/68799e789fc5f2a5ff25beffa4dc8828780c08fb
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-11-15 (Tue, 15 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

(cherry picked from commit 8c49b01a1ee051ab2c09be4cffc83656ccc0fbe6)




More information about the All-commits mailing list