[all-commits] [llvm/llvm-project] aa6d54: [InstSimplify] Fold {u, s}{min, max} x, poison -> po...

Luke Lau via All-commits all-commits at lists.llvm.org
Thu May 1 16:49:48 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aa6d541065ef755bea9c6ed2b3598f0664c10002
      https://github.com/llvm/llvm-project/commit/aa6d541065ef755bea9c6ed2b3598f0664c10002
  Author: Luke Lau <luke at igalia.com>
  Date:   2025-05-02 (Fri, 02 May 2025)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstSimplify/maxmin_intrinsics.ll

  Log Message:
  -----------
  [InstSimplify] Fold {u,s}{min,max} x, poison -> poison (#138166)

Following from the discussion in
https://github.com/llvm/llvm-project/pull/138095#discussion_r2070484664,
these intrinsics are poison if any of their operands are poison, and are
marked as such in propagatesPoison in ValueTracking.cpp.

This will help fold away leftover vectors produced by VectorCombine when
scalarizing intrinsics.



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