[llvm-commits] [PATCH] Add support for promoting integer SETCC
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Jul 17 02:09:11 PDT 2009
Hi,
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: promote-setcc.patch
Type: application/octet-stream
Size: 5626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090717/aeb39b49/attachment.obj>
-------------- next part --------------
More information about the llvm-commits
mailing list