[llvm] Attributor: Add denormal-fp-math to attributor-light (PR #79576)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 01:25:28 PST 2024
================
@@ -371,7 +371,6 @@ define void @nc4(ptr %p) {
; ATTRIBUTOR: Function Attrs: nosync nounwind memory(read)
; ATTRIBUTOR-LABEL: define void @nc4
; ATTRIBUTOR-SAME: (ptr nocapture readonly [[P:%.*]]) #[[ATTR7:[0-9]+]] {
-; ATTRIBUTOR-NEXT: call void @external(ptr nocapture readonly [[P]]) #[[ATTR4]]
----------------
arsenm wrote:
I don't see a way to make the test not-meaningless. If the function doesn't write memory, it has to have a return value to be meaningful. If it has a return value, it's not eligible for nocapture
https://github.com/llvm/llvm-project/pull/79576
More information about the llvm-commits
mailing list