llvm-project
b359c84f - [RISCV] Don't commute with shift if it would break sh{1,2,3}add pattern (#119527)

Commit
269 days ago
[RISCV] Don't commute with shift if it would break sh{1,2,3}add pattern (#119527) This fixes a regression from #101294 by checking if we might be clobbering a sh{1,2,3}add pattern. Only do this is the underlying add isn't going to be folded away into an address offset.
Author
Parents
Loading