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?


On 01/18/10 03:39, fanqifei wrote:
2010/1/18 Adam Nemet<adambnemet@gmail.com>:
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

Thank you, Adam. The problem is that before combine pass the
statement is expressed in 6 insns. The insns can't be combined into
the expected pattern (set A (ior (and B C1) OTHER)). Otherwise,
make_field_assignment can do the job of simplifying the SET insn.
It is sometimes possible to create intermediate patterns to allow the combiner to see a larger window of insns. Obviously if you create these intermediate patterns you should split them if they survive beyond the combiner phase.

jeff



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