[PATCH] D44127: DeadArgumentElim] Clone function level metadatas

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 5 16:55:48 PST 2018


davidxl added a comment.

Also add an dead vararg elimination test case for better coverage.



================
Comment at: test/Transforms/DeadArgElim/func_metadata.ll:13
+entry:
+  tail call fastcc i64 @foo()
+  ret i32 0
----------------
dead arg elim is missing the test case.


================
Comment at: test/Transforms/DeadArgElim/func_metadata.ll:27
+
+attributes #0 = { inlinehint norecurse nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
+attributes #1 = { inlinehint noinline norecurse nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
----------------
Simplify the attribute.


https://reviews.llvm.org/D44127





More information about the llvm-commits mailing list