Hi Rafael, Nadav,

Thank you for the input but I don't follow where the change needs to be made.

Are you suggesting changes to llvm's  lib/Transforms/IPO/PassManagerBuilder.cpp?
This approach would  make the '-vectorize-loops' & '-vectorize-slp' flags  only 
relevant for targets with vector registers?

Or in clang/lib/Driver/Tools.cpp?

In either case, I can't see how to get hold of the TargetTransformInfo cleanly.

Robert

________________________________________
From: Rafael Espíndola [[email protected]]
Sent: 06 September 2013 18:43
To: Nadav Rotem
Cc: Robert Lytton; [email protected]; Arnold Schwaighofer
Subject: Re: XCore target: disable vectorization

> unsigned TargetVectorRegisters = TTI.getNumberOfRegisters(true);

And not vectorize if the target says 0? I like that idea.

Cheers,
Rafael

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to