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: Byte permutation optimization


On Sun, Jul 13, 2008 at 6:29 AM, Andi Kleen <andi@firstfloor.org> wrote:
> Nils Pipenbrinck <n.pipenbrinck@cubic.org> writes:
>
>> Since the codebase is huge I have the feeling that I have overlooked
>> something. Does some kind of infrastructure to detect patterns within
>> a SSA tree already exists somewhere else?
>
> FWIW some time ago I wanted to do some other arithmetic optimization
> on expressions and didn't find a nice generic "misc transformation
> pass" or an generic pattern matcher. Probably one would need to be added.

The closest we have to misc transforms like this at the tree level is
either forwprop or reassoc
Probably better, as you say, to add a misc pattern matcher.


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