[LLVMdev] how do I disable vectorization passes for a target by default?
Robert Lytton
robert at xmos.com
Fri Aug 23 10:30:15 PDT 2013
Hi
I would like to disable vectorization on the XCore target by default.
I assume I need to push_back -fno-vectorize in clang/lib/driver/Tools.cpp for Triple::xcore.
Should I also disable the pass in llvm explicitly?
I tried setting getNumberOfRegisters in XCoreTTI::TargetTransformInfo viz:
unsigned getNumberOfRegisters(bool Vector) const {
if (Vector) {
return 0;
}
return 12;
}
But this made no difference (I need to double check).
What is the correct way to disable vectorization passes?
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130823/9cfc5366/attachment.html>
More information about the llvm-dev
mailing list