Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-7645

Optimizer crashes given unrolled nested loops and lots of aliasing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • Code Generation Tools
    • CODEGEN-371
    • SDSCM00042619
    • C6000_7.4.0B1
    • C6000_7.4.0B1
    • Hide
      Add "#pragma UNROLL(1)" (or another small unroll factor, like 2 or 3) in
      front of the inner loops, to prevent complete unrolling. Using a local
      scalar temp variable for the outer-loop trip count may also help (and
      tends to help performance in many cases anyway). Adding "restrict"
      declarations to some of the pointers may also help. Finally, if the
      areas copied are contiguous, using memcpy() instead of an explicit loop
      is likely to be faster, less troublesome, and easier to maintain.
      Show
      Add "#pragma UNROLL(1)" (or another small unroll factor, like 2 or 3) in front of the inner loops, to prevent complete unrolling. Using a local scalar temp variable for the outer-loop trip count may also help (and tends to help performance in many cases anyway). Adding "restrict" declarations to some of the pointers may also help. Finally, if the areas copied are contiguous, using memcpy() instead of an explicit loop is likely to be faster, less troublesome, and easier to maintain.

      Optimizer crashes given unrolled nested loops and lots of aliasing

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: