[all-commits] [llvm/llvm-project] 2f8b48: [IR][JumpThreading] Fix infinite recursion on comp...

Robert Imschweiler via All-commits all-commits at lists.llvm.org
Mon Apr 7 01:01:57 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f8b486f979f4b89929a447f516fd1da9a659834
      https://github.com/llvm/llvm-project/commit/2f8b486f979f4b89929a447f516fd1da9a659834
  Author: Robert Imschweiler <robert.imschweiler at amd.com>
  Date:   2025-04-07 (Mon, 07 Apr 2025)

  Changed paths:
    M llvm/include/llvm/Transforms/Scalar/JumpThreading.h
    M llvm/lib/Transforms/Scalar/JumpThreading.cpp
    M llvm/test/Transforms/JumpThreading/unreachable-loops.ll

  Log Message:
  -----------
  [IR][JumpThreading] Fix infinite recursion on compare self-reference (#129501)

In unreachable code, constant PHI nodes may appear and be replaced by their
single value. As a result, instructions may become self-referencing. This
commit adds checks to avoid going into infinite recursion when handling
self-referencing compare instructions in `evaluateOnPredecessorEdge()`.

This LLVM defect was identified via the AMD Fuzzing project.



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