[LLVMbugs] [Bug 23737] New: SROA replaces atomic volatile load with volatile load

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 2 15:08:45 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23737

            Bug ID: 23737
           Summary: SROA replaces atomic volatile load with volatile load
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

consider:
target triple = "x86_64-pc-linux"

define void @f(i64** %x) {
entry:
  %ptr = alloca i64, align 8
  store i64 0, i64* %ptr, align 8
  %load = load atomic volatile i64, i64* %ptr seq_cst, align 8
  ret void
}

running -sroa results in:
target triple = "x86_64-pc-linux"

define void @f(i64** %x) {
entry:
  %ptr = alloca i64, align 8
  store i64 0, i64* %ptr, align 8
  %ptr.0.load = load volatile i64, i64* %ptr, align 8
  ret void
}

This doesn't seem correct.

-- 
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/20150602/5d988475/attachment.html>


More information about the llvm-bugs mailing list