[PATCH] D104641: [LICM] Strip context sensitive attributes after call hoisting

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 23 02:00:55 PDT 2021


nikic added a reviewer: jdoerfert.
nikic added inline comments.


================
Comment at: llvm/lib/IR/Instructions.cpp:353
+            Attribute::NonNull, Attribute::Alignment, Attribute::NoAlias,
+            Attribute::Dereferenceable};
+	for (unsigned ArgNo = 0; ArgNo < getNumArgOperands(); ArgNo++) {
----------------
We already have removeParamUndefImplyingAttributes() with a similar but not same list of attributes. I'm not sure if the desired semantics line up, but if they do it would be good to extend/reuse that.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104641



More information about the llvm-commits mailing list