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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to