[all-commits] [llvm/llvm-project] f8d5a0: [SCEV] Don't create SCEVPtrToAddr for unstable poi...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Feb 10 05:47:04 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f8d5a003faa7567c2bac0b064ea6616f2e892467
      https://github.com/llvm/llvm-project/commit/f8d5a003faa7567c2bac0b064ea6616f2e892467
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-02-10 (Tue, 10 Feb 2026)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/test/Analysis/ScalarEvolution/ptrtoaddr.ll

  Log Message:
  -----------
  [SCEV] Don't create SCEVPtrToAddr for unstable pointer representations. (#180718)

Conservatively treat unstable pointers as SCEVCouldNotCompute in
getPtrToAddrExpr, and return SCEVUnknown when constructing from IR.

This surfaced as part of the discussion in
https://github.com/llvm/llvm-project/pull/178861.

PR: https://github.com/llvm/llvm-project/pull/180718



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