ISLE: Resolve overlap in the riscv64 backend (#4982)

Resolve overlap in the RiscV64 backend by adding priorities to rules. Additionally, one test updated as a result of this work, as a peephole optimization for addition with immediates fires now.
This commit is contained in:
Trevor Elliott
2022-09-29 17:22:25 -07:00
committed by GitHub
parent 77ab99d3b0
commit c1d6ca48a7
3 changed files with 254 additions and 253 deletions

View File

@@ -329,8 +329,7 @@ block0(v0: i32):
}
; block0:
; li a1,-1
; addw a0,a0,a1
; addiw a0,a0,-1
; ret
function %f27(i32) -> i32 {