llvm-project
f26360f2 - [IR] Don't store switch case values as operands (#166842)

Commit
4 days ago
[IR] Don't store switch case values as operands (#166842) SwitchInst case values must be ConstantInt, which have no use list. Therefore it is not necessary to store these as Use, instead store them more efficiently as a simple array of pointers after the uses, similar to how PHINode stores basic blocks. After this change, the successors of all terminators are stored consecutively in the operand list. This is preparatory work for improving the performance of successor access.
Author
Parents
Loading