[PATCH] D137053: [IR][Instruction] Annotate more methods with LLVM_READONLY

Alexander Shaposhnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 30 17:38:07 PDT 2022


alexander-shaposhnikov created this revision.
alexander-shaposhnikov added reviewers: craig.topper, nikic, rnk.
alexander-shaposhnikov created this object with visibility "All Users".
Herald added a subscriber: StephenFan.
Herald added a project: All.
alexander-shaposhnikov requested review of this revision.
Herald added a project: LLVM.

This diff annotates more methods of the class Instruction with LLVM_READONLY 
(similarly to isAssociative/isCommutative, see https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/IR/Instruction.h#L529).
For perf measurement results see the branch perf/rebased-llvm-readonly on http://llvm-compile-time-tracker.com/?config=NewPM-O3&stat=instructions%3Au&remote=alexander-shaposhnikov .

Test plan: ninja check-all in various configurations (clang / gcc)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137053

Files:
  llvm/include/llvm/IR/Instruction.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137053.471887.patch
Type: text/x-patch
Size: 7855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221031/3eb423e4/attachment.bin>


More information about the llvm-commits mailing list