Open vsukhoml opened 1 year ago
@llvm/issue-subscribers-backend-risc-v
Looks like -mllvm -lsr-drop-solution
improves this.
cc: @eopXD
Donnieboi420@outlook.com
I think https://github.com/llvm/llvm-project/pull/89927 is relevant here, it enables -mllvm -lsr-drop-solution
by default
In example https://godbolt.org/z/b8z5P1KEz
GCC frequently produce kernel loop with 3 instructions (sometimes with bad block splitting in other variants):
while LLVM produce 4 instructions: