[llvm-commits] PATCH: Teach constant folding about SSE[2] conversion intrinsics

Chris Lattner clattner at apple.com
Mon Jan 10 12:57:24 PST 2011


On Jan 10, 2011, at 1:18 AM, Chandler Carruth wrote:
> define i32 @_Z1av() nounwind readnone {
> entry:
>   ret i32 3
> }
> 
> which looks pretty good to me. =]
> 
> One question, where is the best place to test this? I couldn't find a direct test for ConstantFolding.

Very nice!  test/Transforms/ConstProp is the best place for constant folding tests.

The patch looks reasonable to me, please add a doxygen comment to ConstantFoldConvertToInt though.  Thanks Chandler!


-Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110110/25e43364/attachment.html>


More information about the llvm-commits mailing list