[llvm] [DAG] Add TRUNCATE_SSAT_S/U and TRUNCATE_USAT_U to canCreateUndefOrPoison and computeKnownBits (#152143) (PR #168809)
Jerry Dang via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 23 15:33:15 PST 2025
================
@@ -0,0 +1,82 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=aarch64 | FileCheck %s
+
+;; ============================================================================
+;; Tests for canCreateUndefOrPoison = false
+;; These verify that freeze operations are correctly eliminated
+;; ============================================================================
----------------
kuroyukiasuna wrote:
canCreateUndefOrPoison
`TRUNCATE_SSAT_S` verified behaving correctly together with `computeKnownBits`.
But for `TRUNCATE_SSAT_U` and `TRUNCATE_USAT_U`, freeze elimination still happens at the IR level via ValueTracking.cpp - should we just move the elimination to IR level then?
https://github.com/llvm/llvm-project/pull/168809
More information about the llvm-commits
mailing list