[all-commits] [llvm/llvm-project] 740057: [funcattrs] Infer writeonly argument attribute
Philip Reames via All-commits
all-commits at lists.llvm.org
Thu Dec 2 13:05:00 PST 2021
Author: Philip Reames <listmail at philipreames.com>
Date: 2021-12-02 (Thu, 02 Dec 2021)
[funcattrs] Infer writeonly argument attribute
This change extends the current logic for inferring readonly and readnone argument attributes to also infer writeonly.
This change is deliberately minimal; there's a couple of areas for follow up.
* I left out all call handling and thus any benefit from the SCC walk. When examining the test changes, I realized the existing code is imprecise, and am going to fix that in it's own revision before adding in the writeonly handling. (Mostly because updating the tests is hard when I, the human, can't figure out whether the result is correct.)
* I left out handling for storing a value (as opposed to storing to a pointer). This should benefit readonly/readnone as well, and applies to a bunch of other instructions. Seemed worth having as a separate review.
Differential Revision: https://reviews.llvm.org/D114963
More information about the All-commits