[PATCH] D117591: A readonly operand bundle should not prevent inference of readonly from a readnone callee

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 18 12:38:24 PST 2022


reames added inline comments.


================
Comment at: llvm/include/llvm/IR/InstrTypes.h:2293
+  // know if an attribute's semantics are implied, not whether the attribute
+  // is actually present.  This distinction only exists when checking whether
+  // something is readonly or writeonly since readnone implies both.  The case
----------------
fhahn wrote:
> Nit: 2 spaces before `This`.
There appear to already be two?  Did you maybe mean you wanted one?  (At least from my memory of high school grammar, two is "correct".)


================
Comment at: llvm/test/Transforms/InstCombine/trivial-dse-calls.ll:258
 ;
   call void @removable_readnone() [ "deopt"() ]
   ret void
----------------
fhahn wrote:
> Do we also have a test with an unknown bundle?
Should be covered by test/Features/OperandBundles/func-attrs.ll


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117591/new/

https://reviews.llvm.org/D117591



More information about the llvm-commits mailing list