[LLVMdev] [PATCH] Add custom UINT_TO_FP lowering from v2i32 to v2f32 in 32-bit mode

Michael Liao michael.liao at intel.com
Tue Oct 23 16:51:54 PDT 2012


As 32-bit mode doesn't have 64-bit GPR, the sequence converting v2i32 to
v2f32 is quite inefficient in 32-bit mode. This patch adds the custom
lowering in 32-bit mode. In addition, it teaches DAG combine to
transform (build_vec (Xint2fp x) (Xint2fp y) ..) to (Xint2fp (build_vec
x y)) to reduce the strength on FP conversion unit.

Thanks for your review

- Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-folding-from-buildvec-Xint2fp-to-Xint2fp-buildve.patch
Type: text/x-patch
Size: 7395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121023/c83c6091/attachment.bin>

More information about the llvm-dev mailing list