http://llvm.org/bugs/show_bug.cgi?id=11997

             Bug #: 11997
           Summary: BB vectorizer does not use TLI (target lowering
                    information)
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


The BB vectorizer should be instantiated with the target information in a
similar way to LSR (loop strength reduction): LSR is using the target lowering
information to extract information about the existing addressing modes of the
target architecture: here is for instance the constructor of LSR:
LoopStrengthReduce::LoopStrengthReduce(const TargetLowering *tli)

The vectorizer should infer the vectorization factor from TLI, not from the
flag:
static cl::opt<unsigned>
VectorBits("bb-vectorize-vector-bits", cl::init(128), cl::Hidden,
  cl::desc("The size of the native vector registers"));

TLI has to be used to determine which vector types are supported by the target:
for example, some targets do not support float vectors.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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

Reply via email to