[llvm] [DAGCombiner] Preserve nsw when folding (mul x, 2^c) to (shl x, c) (PR #192366)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 17 08:48:38 PDT 2026
================
@@ -0,0 +1,38 @@
+; REQUIRES: asserts
+; RUN: llc -mtriple=riscv64 -debug-only=isel -o /dev/null %s 2>&1 | FileCheck %s
----------------
RKSimon wrote:
+1 a mir test would be better for this kind of thing
https://github.com/llvm/llvm-project/pull/192366
More information about the llvm-commits
mailing list