https://bugs.llvm.org/show_bug.cgi?id=45562

            Bug ID: 45562
           Summary: BasicTTIImpl.h has many functions that operate on Type
                    that should operate on VectorType
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Many functions in llvm\include\llvm\CodeGen\BasicTTIImpl.h take pointers to
base Type as arguments and return them as results. However, these objects are
in fact required to be or guaranteed to be VectorType, and are unconditionally
casted to/from.

The amount of casting required in this file and in classes that use it would be
greatly reduced, and the ability to reason about the code would be greatly
increased if these functions operated on VectorType or its subclasses instead.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to