XCore target: disable vectorization
robert at xmos.com
Mon Sep 9 05:13:07 PDT 2013
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.
From: Rafael Espíndola [rafael.espindola at gmail.com]
Sent: 06 September 2013 18:43
To: Nadav Rotem
Cc: Robert Lytton; cfe-commits at cs.uiuc.edu; 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.
More information about the cfe-commits