[llvm] Reland "[InstCombine] Fold (sub nuw X, (Y << nuw Z)) >>u exact Z --> (X >>u exact Z) sub nuw Y" (PR #93571)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 28 09:35:35 PDT 2024


================
@@ -466,6 +466,33 @@ define i32 @shl_sub_lshr(i32 %x, i32 %c, i32 %y) {
   ret i32 %lshr
 }
 
+define i32 @shl_sub_lshr_reverse(i32 %x, i32 %c, i32 %y) {
----------------
AtariDreams wrote:

Done!

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


More information about the llvm-commits mailing list