The goal of this change is fixing most of compile time slowdown seen after a630ea3003 commit on lencod and sqlite3 benchmarks.
There are 3 simple improvements included in this patch:
- In getNumOperands when possible get value directly from SmallNumOps.
- Inline getLargePtr by moving its definition to header.
- In TBAAStructTypeNode::getField get all operands once instead taking operands in loop one after one.
Directly use getLarge().size() here?