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