diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-04-15 17:19:07 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-04-15 17:20:57 -0700 |
commit | 9d86bf825c21279abfe318317d1a22b007331fa3 (patch) | |
tree | ff6c96712e83ed4a1a250b7a29855baa4b098f08 /llvm/lib/Transforms/Utils/ModuleUtils.cpp | |
parent | 353f0a8e43f7e1d12ac96c5e8c37c4d887f51fe2 (diff) | |
download | llvm-9d86bf825c21279abfe318317d1a22b007331fa3.zip llvm-9d86bf825c21279abfe318317d1a22b007331fa3.tar.gz llvm-9d86bf825c21279abfe318317d1a22b007331fa3.tar.bz2 |
[X86] Move hasOneUse check after opcode check. NFC
Checking opcode is cheap. hasOneUse might not be if the node has
multiple results. By checking the opcode we can rule out nodes
with multiple results we aren't interested in.
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions