[PATCH 2/7] SMS remove dependence on doloop: Use get_simple_loop_desc to get loop iteration count

Shiva Chen shivac@marvell.com
Thu May 5 06:06:00 GMT 2016


Hi,

The loop after SMS transformation would at least execute stage_count
times (due to the duplication in prolog/epilog).
To avoid the loop with loop_count < stage_count execute the sms
version loop, SMS will try to get loop iteration count.

Currently, SMS would get iteration count by finding the instruction
which setup the iteration count. The instruction would generate by
doloop optimization.

To remove the dependency on doloop pass, we generalize the method
by using get_simple_loop_desc function to get loop iteration count.

Thanks,
Shiva
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Use-get_simple_loop_desc-to-get-loop-iteration-count.patch
Type: application/octet-stream
Size: 3010 bytes
Desc: 0002-Use-get_simple_loop_desc-to-get-loop-iteration-count.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160505/bb55b605/attachment.obj>


More information about the Gcc-patches mailing list