[llvm-commits] [PATCH] Add support for promoting integer SETCC
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Jul 23 23:13:21 PDT 2009
On 17/07/2009, at 11.09, Jakob Stoklund Olesen wrote:
> The attached patch adds support for promoting integer SETCC in
> PromoteNode. Blackfin has i16 and i32 as legal types, but it only
> supports i32 SETCC.
>
> Also add isBeforeLegalizeOps() to DAGCombinerInfo so
> TargetLowering::SimplifySetCC() knows when it can insert illegal
> SETCCs.
>
> Fix one case of a bad SETCC created by
> TargetLowering::SimplifySetCC() after LegalizeOps. There may be
> others, but I have not been able to tease them out in a test case. I
> have a test case for this as part of my Blackfin back-end.
>
> Patch passes "make check", please review.
OK to commit?
More information about the llvm-commits
mailing list