[all-commits] [llvm/llvm-project] bc302b: BasicAA: Recognize inttoptr as isEscapeSource

Joseph Tremoulet via All-commits all-commits at lists.llvm.org
Fri May 7 07:49:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bc302bfbef84bd778a9e5e0a1b5851c6a55c1d9c
      https://github.com/llvm/llvm-project/commit/bc302bfbef84bd778a9e5e0a1b5851c6a55c1d9c
  Author: Joseph Tremoulet <jotrem at microsoft.com>
  Date:   2021-05-07 (Fri, 07 May 2021)

  Changed paths:
    M llvm/lib/Analysis/BasicAliasAnalysis.cpp
    A llvm/test/Analysis/BasicAA/noalias-inttoptr.ll

  Log Message:
  -----------
  BasicAA: Recognize inttoptr as isEscapeSource

Pointers escape when converted to integers, so a pointer produced by
converting an integer to a pointer must not be a local non-escaping
object.

Reviewed By: nikic, nlopes, aqjune

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




More information about the All-commits mailing list