failed to fold shift amount offset into shift of a constant, part 2 #55016
Labels
good first issue
https://github.com/llvm/llvm-project/contribute
llvm:instcombine
missed-optimization
Forking this off from #54890 - that handled a shift-left variant, but there's a similar shift-right fold that could be added:
https://alive2.llvm.org/ce/z/qzh4oK
This should be generalized for other constant values, and it should also work in the more common case of a positive shift constant with "lshr".
The text was updated successfully, but these errors were encountered: