[LLVMbugs] [Bug 15262] New: ConstantFoldInstruction returns type with incorrect addrspace
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 13 17:13:26 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=15262
Bug ID: 15262
Summary: ConstantFoldInstruction returns type with incorrect
addrspace
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Global Analyses
Assignee: unassignedbugs at nondot.org
Reporter: sschiffli at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10014
--> http://llvm.org/bugs/attachment.cgi?id=10014&action=edit
Failing .ll file
I'm seeing an assert from the InstructionCombining pass. It attempts to fold
the following:
IC: ConstFold to:
i8 addrspace(12)* getelementptr inbounds ([4 x i8] addrspace(12)* @buf,i32 0,
i32 2)
from:
%ptr = getelementptr inbounds i8* bitcast ([4 x i8] addrspace(12)* @buf to
i8*), i32 2
As you can see it changes the types and thus the RAUW fails. To reproduce run
"opt -instcombine min.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/20130214/c63ff25c/attachment.html>
More information about the llvm-bugs
mailing list