[all-commits] [llvm/llvm-project] d911c1: [SCCP] Get a copy of the state of CopyOf once.

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri May 1 06:50:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d911c17596c105d66be8daba4e778600527fde2e
      https://github.com/llvm/llvm-project/commit/d911c17596c105d66be8daba4e778600527fde2e
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-05-01 (Fri, 01 May 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SCCP.cpp

  Log Message:
  -----------
  [SCCP] Get a copy of the state of CopyOf once.

This fixes potential reference invalidations, when no lattice value is
assigned for CopyOf. As the state of CopyOf won't change while in
handleCallResult, we can get a copy once and use that.

Should fix PR45749.




More information about the All-commits mailing list