[LLVMbugs] [Bug 14160] New: BasicAA omits swapping of TBAAInfo

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 23 11:35:48 PDT 2012


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

             Bug #: 14160
           Summary: BasicAA omits swapping of TBAAInfo
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: weimingz at codeaurora.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9407
  --> http://llvm.org/bugs/attachment.cgi?id=9407
simple fix

In BasicAliasAnalysis::aliasCheck(), when swapping V1/V2, V1Size/V2Size and
O1/O2, V1TBAAInfo/V2TBAAInfo should be swapped as well.
Otherwise, it may cause unexpected hit/miss of AliasCache due to wrong key.

Attached is a simple fix

-- 
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.



More information about the llvm-bugs mailing list