[all-commits] [llvm/llvm-project] 4da4fa: [ArgPromotion] Consider InvokeInst in Caller alias...

Hari Limaye via All-commits all-commits at lists.llvm.org
Fri Oct 4 06:33:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4da4fac322165420f0522cb554e5f6f25540d564
      https://github.com/llvm/llvm-project/commit/4da4fac322165420f0522cb554e5f6f25540d564
  Author: Hari Limaye <hari.limaye at arm.com>
  Date:   2024-10-04 (Fri, 04 Oct 2024)

  Changed paths:
    M llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
    M llvm/test/Transforms/ArgumentPromotion/actual-arguments.ll

  Log Message:
  -----------
  [ArgPromotion] Consider InvokeInst in Caller alias analysis (#110335)

Check that all users of a Function are CallBase rather than CallInst
when performing alias analysis using actual arguments in the calling
function, as this check is also valid for Invoke instructions.

This allows replacing the existing check with an assert, as the Function
only being used by CallBase derived instructions is a precondition of
the transform.

This addresses post-commit review on #106216.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list