[LLVMbugs] [Bug 22597] New: Invalid optimization assumption, two external symbols of different names can't alias

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 15 06:36:19 PST 2015


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: unassignedclangbugs at nondot.org
          Reporter: kevin.waugh at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150215/b3e21a09/attachment.html>


More information about the llvm-bugs mailing list