[PATCH] D31058: Store Arguments in a flat array instead of an iplist

Sanjoy Das via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 16 15:38:20 PDT 2017


sanjoy added inline comments.


================
Comment at: include/llvm/IR/Argument.h:33
   Function *Parent;
   unsigned ArgNo;
 
----------------
Do we need to store both?  Why not have `getArgNo` return `this - Parent->getArgBegin()` (or equivalent)?


https://reviews.llvm.org/D31058





More information about the llvm-commits mailing list