[all-commits] [llvm/llvm-project] 2b3dd2: [GlobalsAA] Handle self-referencing stores in `Ana...

Antonio Frighetto via All-commits all-commits at lists.llvm.org
Mon Aug 3 23:47:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b3dd2dc32be01ebb74c15d919822538db0292db
      https://github.com/llvm/llvm-project/commit/2b3dd2dc32be01ebb74c15d919822538db0292db
  Author: Antonio Frighetto <me at antoniofrighetto.com>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M llvm/lib/Analysis/GlobalsModRef.cpp
    A llvm/test/Analysis/GlobalsModRef/self-addresstaken.ll

  Log Message:
  -----------
  [GlobalsAA] Handle self-referencing stores in `AnalyzeUsesOfPointer` (#213631)

Correctly recognize that a global address does escape when it is stored
into itself. Such globals were previously incorrectly marked as
non-address-taken.

Fixes: https://github.com/llvm/llvm-project/issues/213232.



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