<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi<br>
<br>
I would like to disable vectorization on the XCore target by default.<br>
<br>
I assume I need to push_back -fno-vectorize in clang/lib/driver/Tools.cpp for Triple::xcore.<br>
<br>
Should I also disable the pass in llvm explicitly?<br>
I tried setting getNumberOfRegisters in XCoreTTI::TargetTransformInfo viz:<br>
<br>
  unsigned getNumberOfRegisters(bool Vector) const {<br>
    if (Vector) {<br>
       return 0;<br>
    }<br>
    return 12;<br>
  }<br>
<br>
But this made no difference (I need to double check).<br>
<br>
What is the correct way to disable vectorization passes?<br>
<br>
Robert<br>
<br>
</div>
</body>
</html>