Suppress warning for missing loop-vectorizer feature if user is not enabling it.
This commit is contained in:
parent
9571aefbe0
commit
af6b0d7823
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ class PassManagerBuilder(llvm.Handle):
|
||||||
if llvm.version >= (3, 2):
|
if llvm.version >= (3, 2):
|
||||||
_core.LLVMPassManagerBuilderSetLoopVectorize(self.ptr,
|
_core.LLVMPassManagerBuilderSetLoopVectorize(self.ptr,
|
||||||
int(bool(enable)))
|
int(bool(enable)))
|
||||||
else:
|
elif enable:
|
||||||
warnings.warn("Ignored. LLVM-3.1 & prior do not support loop vectorizer.")
|
warnings.warn("Ignored. LLVM-3.1 & prior do not support loop vectorizer.")
|
||||||
|
|
||||||
def _get_loop_vectorize(self):
|
def _get_loop_vectorize(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue