fix bad version checking which disables auto-vectorization for llvm 3.3
This commit is contained in:
parent
18d3b4809f
commit
bf5859be7e
1 changed files with 2 additions and 2 deletions
|
|
@ -343,14 +343,14 @@ def build_pass_managers(tm, opt=2, loop_vectorize=False, vectorize=False,
|
|||
if pm:
|
||||
pm.add(tm.target_data.clone())
|
||||
pm.add(TargetLibraryInfo.new(tm.triple))
|
||||
if llvm.version == (3, 2):
|
||||
if llvm.version >= (3, 2):
|
||||
pm.add(TargetTransformInfo.new(tm))
|
||||
pmb.populate(pm)
|
||||
|
||||
if fpm:
|
||||
fpm.add(tm.target_data.clone())
|
||||
fpm.add(TargetLibraryInfo.new(tm.triple))
|
||||
if llvm.version == (3, 2):
|
||||
if llvm.version >= (3, 2):
|
||||
fpm.add(TargetTransformInfo.new(tm))
|
||||
pmb.populate(fpm)
|
||||
fpm.initialize()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue