This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC-How does the coding style affect the insv pattern recognization?


2010/1/18 Adam Nemet <adambnemet@gmail.com>:
> fanqifei <fanqifei@gmail.com> writes:
>> ? ? Paolo Bonzini said that insv instruction might be synthesized
>> later by combine. But combine only works on at most 3 instructions and
>> insv is not generated in such case.
>> ? ? So exactly when will the insv pattern be recognized and how does
>> the coding style affect it?
>
> Sorry for jumping in late. ?See make_file_assigment in combine.c.
>
> The problem usually is that:
>
> ?(set A (ior (and B C1) OTHER))
>
> can only be turned into a bit-insertion if A and B happen to be the same
> pseudos.
>
> Adam
>
I did found such kind of pattern for some simple C statements in rtl dump.
Unfortunately, A and B are not same.
Is it possible and easy to move B to A firstly and replace B with A in the insn?
Anyway, this is not required if it's impracticable.

Qifei Fan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]