[llvm] [Instcombine] Ensure simplifyValueKnownNonZero adds instrs in dominance order. (PR #173703)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 27 02:00:49 PST 2025


================
@@ -0,0 +1,13 @@
+; NOTE: This test ensures InstCombine preserves dominance even when it
+; reorders shifts through SimplifyDemandedBits/log2 folding.
+;
+; RUN: opt -passes=instcombine,verify -disable-output %s
----------------
nikic wrote:

```suggestion
; RUN: opt -passes=instcombine < %s | FileCheck %s
```
Please check the output even if it's a crash regression test.

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


More information about the llvm-commits mailing list