http://llvm.org/bugs/show_bug.cgi?id=3170

           Summary: loop unswitch never unswitches any loops
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED], [email protected]


Take even the most trivial loop to unswitch:
int a(int x, int y) {
  for (unsigned i = 0; i < y; i++) {
    if (x) {
      b();
    }
  }return 0;
}

Loop unswitch somehow can't manage to unswitch it.

The cause here is r58631; it changed FindLIVLoopCondition so that it always
returns null, which means the unswitcher can never find any conditions to
unswitch on.  I somehow doubt that was the intention, but I can't figure out
what it was trying to do.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to