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