Suppress warning for missing loop-vectorizer feature if user is not enabling it.

This commit is contained in:
Siu Kwan Lam 2013-01-07 14:00:11 -06:00
commit af6b0d7823

View file

@ -92,7 +92,7 @@ class PassManagerBuilder(llvm.Handle):
if llvm.version >= (3, 2):
_core.LLVMPassManagerBuilderSetLoopVectorize(self.ptr,
int(bool(enable)))
else:
elif enable:
warnings.warn("Ignored. LLVM-3.1 & prior do not support loop vectorizer.")
def _get_loop_vectorize(self):