[llvm] [InstCombine] Do not simplify lshr/shl arg if it is part of fshl rotate pattern. (PR #66115)

Momchil Velikov via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 22 06:17:11 PDT 2023


================
@@ -722,6 +722,134 @@ define i32 @fsh_orconst_rotate(i32 %a) {
   ret i32 %t2
 }
 
+define i32 @fsh_rotate_25(i8 %x, i32 %y) {
----------------
momchil-velikov wrote:

It would be nice to explicitly mark with a comment the tests where the simplification didn't not trigger anyway.

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


More information about the llvm-commits mailing list