[llvm] [DAGCombiner] Preserve nsw when folding (mul x, 2^c) to (shl x, c) (PR #192366)

Jim Lin via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 19 22:51:44 PDT 2026


================
@@ -0,0 +1,38 @@
+; REQUIRES: asserts
+; RUN: llc -mtriple=riscv64 -debug-only=isel -o /dev/null %s 2>&1 | FileCheck %s
----------------
tclin914 wrote:

Add mir test instead.

https://github.com/llvm/llvm-project/pull/192366


More information about the llvm-commits mailing list