[llvm-bugs] [Bug 48819] New: New Pass Manager: LoopUnswitch requires Divergence Analysis to work correctly

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 20 08:01:28 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=48819

            Bug ID: 48819
           Summary: New Pass Manager: LoopUnswitch requires Divergence
                    Analysis to work correctly
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedbugs at nondot.org
          Reporter: sameer.sahasrabuddhe at amd.com
                CC: llvm-bugs at lists.llvm.org

The loop-unswitch transform should not be performed on a loop whose condition
is divergent. For this to happen correctly, divergence analysis must be
available. The existing divergence analysis has not been ported to the new pass
manager yet. As a result, loop unswitching on the new pass manager is currently
unsafe on targets that care about divergence.

The following lit test for opt currently fails with the new pass manager:
LLVM :: CodeGen/AMDGPU/amdgpu-inline.ll

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210120/822f80d7/attachment-0001.html>


More information about the llvm-bugs mailing list