[all-commits] [llvm/llvm-project] c02715: [GlobalISel] Add saturating G_TRUNC support for co...

Vikash Gupta via All-commits all-commits at lists.llvm.org
Wed Sep 16 02:49:43 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c02715b01a9d42d5391c8eb230d72c590681cc8e
      https://github.com/llvm/llvm-project/commit/c02715b01a9d42d5391c8eb230d72c590681cc8e
  Author: Vikash Gupta <Vikash.Gupta at amd.com>
  Date:   2026-09-16 (Wed, 16 Sep 2026)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/GISelValueTracking.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/knownbits-trunc-ssat-usat.mir

  Log Message:
  -----------
  [GlobalISel] Add saturating G_TRUNC support for computeKnownBits (#223929)

Port the saturating-truncate KnownBits handling to the GlobalISel. Look
through G_TRUNC_SSAT_S, G_TRUNC_SSAT_U and G_TRUNC_USAT_U by recursing
into the source operand and applying KnownBits::truncSSat, truncSSatU
and truncUSat respectively.



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