[all-commits] [llvm/llvm-project] 4d192f: [InstSimplify][CaptureTracking] Reduce scope of sp...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Feb 21 00:02:11 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d192f2d2a545c8cd51ef86f9e83209eccbe229e
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-02-21 (Tue, 21 Feb 2023)

  Changed paths:
    M llvm/lib/Analysis/CaptureTracking.cpp
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstCombine/compare-alloca.ll

  Log Message:
  [InstSimplify][CaptureTracking] Reduce scope of special case

As described in PR54002, the "icmp of load from global" special
case in CaptureTracking is incorrect, as is the InstSimplify code
that makes use of it.

This moves the special case from CaptureTracking into InstSimplify
to limit its scope to the buggy transform only, and not affect
other code using CaptureTracking as well.

More information about the All-commits mailing list