[LLVMbugs] [Bug 23172] New: function-level attribute leakage

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 9 09:50:36 PDT 2015


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

            Bug ID: 23172
           Summary: function-level attribute leakage
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: spatel+llvm at rotateright.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ cat fast-attribute.ll 

define double @add_0_fast(double %a) #0 {
  %add = fadd double %a, 0.0
  ret double %add
}


define double @add_0_not_fast(double %a) {
  %add = fadd double %a, 0.0
  ret double %add
}

attributes #0 = { "unsafe-fp-math"="true" }

----------------------------------------------------------------------

The 2nd function should have an add instruction, but:

$ ./llc -o - fast-attribute.ll 
_add_0_fast:                            ## @add_0_fast
    retq
_add_0_not_fast:                        ## @add_0_not_fast
    retq

-- 
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/20150409/d90ee9c7/attachment.html>


More information about the llvm-bugs mailing list