diff options
author | Jivan Hakobyan <jivanhakobyan9@gmail.com> | 2023-09-29 21:21:02 -0600 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2023-09-29 21:21:02 -0600 |
commit | d6fe757b39297c1c0cf243acee860d045726c184 (patch) | |
tree | c3eb7845e990ed964d3a62be4cfc01bcd863ede9 /gcc | |
parent | 6cc9904811550d1d3573818face4b055dab5fc8c (diff) | |
download | gcc-d6fe757b39297c1c0cf243acee860d045726c184.zip gcc-d6fe757b39297c1c0cf243acee860d045726c184.tar.gz gcc-d6fe757b39297c1c0cf243acee860d045726c184.tar.bz2 |
RISC-V: Add type attribute in *<optab>_not_const<mode> pattern
After f088b768d01a commit riscv_sched_variable_issue function requires
that all insns should have a type attribute.
When I sent my previous patch there was no such limitation.
Currently, I have regressions on my tests. This patch fixes them.
gcc/ChangeLog:
* config/riscv/bitmanip.md (*<optab>_not_const<mode>): Added type attribute
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/riscv/bitmanip.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/riscv/bitmanip.md b/gcc/config/riscv/bitmanip.md index 0f45bad..a9c8275 100644 --- a/gcc/config/riscv/bitmanip.md +++ b/gcc/config/riscv/bitmanip.md @@ -225,7 +225,9 @@ "#" "&& reload_completed" [(set (match_dup 3) (match_dup 2)) - (set (match_dup 0) (bitmanip_bitwise:X (not:X (match_dup 1)) (match_dup 3)))]) + (set (match_dup 0) (bitmanip_bitwise:X (not:X (match_dup 1)) (match_dup 3)))] + "" + [(set_attr "type" "bitmanip")]) ;; '(a >= 0) ? b : 0' is emitted branchless (from if-conversion). Without a ;; bit of extra help for combine (i.e., the below split), we end up emitting |