http://llvm.org/bugs/show_bug.cgi?id=22597
Bug ID: 22597
Summary: Invalid optimization assumption, two external symbols
of different names can't alias
Product: clang
Version: 3.3
Hardware: Macintosh
OS: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
int f() {
extern int foo asm("foo");
extern int bar asm("bar");
return &foo == &bar; /* optimizer reduces to false */
}
clang -emit-llvm -s tmp.c
@"\01foo" = external global i32
@"\01bar" = external global i32
define i32 @f() nounwind ssp uwtable {
ret i32 0
}
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
--
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