Craig Topper c6fdb1de47 [X86] Move some hasOneUse checks after checking what the opcode is.
Calling hasOneUse can be expensive on nodes with multiple results.
Especially when some results are Chains. By checking the opcode first,
we can avoid walking the uses if it isn't an interesting node,
and thus avoid calling hasOneUse on a node that might have many uses.

Found by profiling the IR given in D123857.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D123881
2022-04-16 14:18:58 -07:00
..
2022-02-10 21:13:44 +01:00
2022-02-06 22:18:35 -08:00
2022-03-13 21:55:56 -07:00
2022-01-26 14:21:25 +01:00
2022-02-06 22:18:35 -08:00