• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » TI C/C++ Compiler » TI C/C++ Compiler - Forum » regarding c66x optimization (w.r.t high register pressure)
Share
TI C/C++ Compiler
  • Forum
Options
  • Subscribe via RSS

regarding c66x optimization (w.r.t high register pressure)

regarding c66x optimization (w.r.t high register pressure)

  • sankara narayana tankala
    Posted by sankara narayana tankala
    on Aug 10 2012 02:45 AM
    Prodigy25 points

    Hello Team,

    I am having one linear assembly file(c64x+ supported instructions) for interpolation functionality for H264 encoder. Currently we are trying to optimize the functionality in C66x platform. So I am trying to use the c66x supported instructions, but most of the cases the loops are getting disqualified because of huge/high register pressure. For example the interpolation function is having MPYSU4, MPYU4 instructions in c64x+ (.sa), loops are getting disqualified because of high register pressure if I try to use DMPYSU4, DMPYU4. Is there any other way to minimize the register pressure?

    I went through SPRABG7 document, they mentioned that Avoid 4-way SIMD instructions to reduce likelihood of register pressure. Then how can we use the new instructions which were introduced for c66x platform.

    regards,

    Narayana

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • George Mock
    Posted by George Mock
    on Aug 12 2012 21:45 PM
    Guru52585 points

    General recommendation ... Try to find a function in the dsplib library that is similar to yours and see how it does it.  Read this post for an idea of what I mean.

    Please post your code so we can comment further.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click Verify Answer on the best reply to your question.
    The Compiler Wiki answers most common questions.
    Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • sankara narayana tankala
    Posted by sankara narayana tankala
    on Aug 13 2012 06:33 AM
    Prodigy25 points

    Hi George,

    I think there is no function named with interpolation(), the function which I was looking is already optimized one in c64x+ platform. I want to optimize further by using c66x supported instructions. As I understand we can optimize well the c64x+ optimized routines by using c66x instructions, but I was getting loop disqualification because of high register pressure. I need some more information for reducing the register pressure.

    regards,

    Narayana

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ran35366
    Posted by ran35366
    on Aug 13 2012 10:34 AM
    Intellectual2325 points

    The two techniques that I know  to reduce registers pressure are

    1. Do not use SIMND instructions
    2. Do not store constants in registers, rather read them again from the L1 memory (the cache)

    I have an example in which a fixed FIR filter coefficients are used. The code reads all coefficients and values from the memory.  The compiler was smart enough to put some of the coefficients in registers and not reading them multiple times.

    Does it help?  please give me feedback

    Ran

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use