[LLVMbugs] [Bug 4366] New: instcombine and simplifycfg mishandle stores to null in non-zero address-space

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jun 10 16:22:44 PDT 2009


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

           Summary: instcombine and simplifycfg mishandle stores to null in
                    non-zero address-space
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Testcase:
define void @a() {
  store i32 0, i32 addrspace(1)* null
  ret void
}

simplifycfg illegally turns this into "unreachable", and instcombine illegally
turns this into a store of an undef value.  Neither transformation should touch
this store: there should be a check for the address-space, similar to the check
in InstCombiner::visitLoadInst.


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