http://llvm.org/bugs/show_bug.cgi?id=17742
Bug ID: 17742
Summary: SLP vectorizer does not handle calls
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 11452
--> http://llvm.org/bugs/attachment.cgi?id=11452&action=edit
IR file (derived from test/Transforms/SLPVectorizer/X86/simplebb.ll)
The SLP vectorizer currently does not handle calls. Some calls, and their
corresponding intrinsics, can be efficiently lowered (like calling fabs() or
floor(), etc.) into vector code. I've attached a test case that I believe
should vectorize with the SLP vectorizer, but does not because of this lack of
call handling.
The loop vectorizer handles these well. See getIntrinsicIDForCall in
lib/Transforms/Vectorize/LoopVectorize.cpp and its various uses for an example
of how to do this properly.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs