[Patch][Hexagon] Peephole optimizations for zero extends.

Pranav Bhandarkar pranavb at codeaurora.org
Thu May 2 12:24:53 PDT 2013


Hi,

This patch adds a peephole optimizations for zero_extends (i32->i64).

It does two types of optimizations.
1) Converts
   "
                  vreg_i64 = combine (#0, vreg_i32)
                  .....  = vreg_i64:subreg_loreg
   "
    into
   "
                 vreg_i64 = combine (#0, vreg_i32)
                 .....   = vreg_i32.
   "

2) Adds patterns in the td file to convert
         " (i64 (zero_extend i32 vreg_i32)) | (shl vreg_i64, 32) "
   into a Hexgaon MI
        " combine_rr (vreg_i64:subreg_loreg, vreg_i32) "

Jyotsna, Anshu: Ok to commit ?

Thanks,
Pranav

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_zero_extensions.patch
Type: text/x-patch
Size: 4446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130502/23df64f9/attachment.bin>


More information about the llvm-commits mailing list