[llvm] [DAGCombiner] Ensure poison-generating flags are stripped in `freeze` op (PR #114582)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 10:52:54 PDT 2024
================
@@ -0,0 +1,40 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc -mtriple=arm-linux-gnueabi -mcpu=arm1022e -mattr=armv5te -o - %s | FileCheck %s
+
+; Ensure poison-generating flags are stripped by the time a freeze operand is visited.
+
+ at g_ptr = global ptr null, align 4
+
+define ptr @drop_flags(i32 noundef %numentries, i64 %cond, i64 %arg) local_unnamed_addr #0 {
----------------
arsenm wrote:
Don't need local_unnamed_addr, and `#0` is dead
https://github.com/llvm/llvm-project/pull/114582
More information about the llvm-commits
mailing list