[llvm] [InstCombine] Added optimisation for trunc (Pow2 >> x) to i1 (PR #157030)

Andreas Jonson via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 7 14:23:22 PDT 2025


================
@@ -93,3 +93,24 @@ define i1 @test5(i32 %i, ptr %p) {
   ret i1 %op
 }
 
----------------
andjo403 wrote:

add some multi use tests and some negative test
also see https://llvm.org/docs/InstCombineContributorGuide.html for some tips on test and how to commit the tests

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


More information about the llvm-commits mailing list