Re: [PATCH, rs6000] Add two peephole2 patterns for mr. insn

2023-06-19 Thread HAO CHEN GUI via Gcc-patches
HP, It makes sense. I will update the patch. Thanks Gui Haochen 在 2023/6/20 8:07, Hans-Peter Nilsson 写道: > On Tue, 30 May 2023, HAO CHEN GUI via Gcc-patches wrote: > >> +++ b/gcc/config/rs6000/rs6000.md >> @@ -7891,6 +7891,36 @@ (define_insn "*mov_internal2" >> (set_attr "dot" "yes") >>

Re: [PATCH, rs6000] Add two peephole2 patterns for mr. insn

2023-06-19 Thread Hans-Peter Nilsson
On Tue, 30 May 2023, HAO CHEN GUI via Gcc-patches wrote: > +++ b/gcc/config/rs6000/rs6000.md > @@ -7891,6 +7891,36 @@ (define_insn "*mov_internal2" > (set_attr "dot" "yes") > (set_attr "length" "4,4,8")]) > > +(define_peephole2 > + [(set (match_operand:CC 2 "cc_reg_operand" "") > +

Re: [PATCH, rs6000] Add two peephole2 patterns for mr. insn

2023-06-06 Thread Kewen.Lin via Gcc-patches
Hi Haochen, on 2023/5/30 14:32, HAO CHEN GUI wrote: > Hi, > By checking the object files of SPECint, I found that two kinds of > compare/move can't be combined to "mr." pattern as there is no register > link between them. The patch adds two peephole2 patterns for them. > Thanks for improving

[PATCH, rs6000] Add two peephole2 patterns for mr. insn

2023-05-30 Thread HAO CHEN GUI via Gcc-patches
Hi, By checking the object files of SPECint, I found that two kinds of compare/move can't be combined to "mr." pattern as there is no register link between them. The patch adds two peephole2 patterns for them. Bootstrapped and tested on powerpc64-linux BE and LE with no regressions. Thanks