[llvm-commits] vector widening patch
Duncan Sands
baldrick at free.fr
Sat Oct 18 11:51:46 PDT 2008
> > how about adding Widen to LegalizeAction, to make things uniform with
> > expand and promote. Also, I think it would be better to do this in
> > LegalizeTypes [*] rather than in LegalizeDAG - it's the future, and
> > it's also much cleaner.
>
> Wouldn't it make sense to use 'expand' to mean "scalarize" and
> 'promote' to mean "widen"?
Yeah, LegalizeTypes already converts Expand into one of
ExpandInteger, SoftenFloat, ExpandFloat, ScalarizeVector
or SplitVector. It could turn Promote into either
PromoteInteger (like now) or WidenVector in a similar way.
No need to add it to LegalizeAction (that suggestion was a
thinko on my part).
Ciao,
Duncan.
More information about the llvm-commits
mailing list