aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ModuleUtils.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-04-15 17:19:07 -0700
committerCraig Topper <craig.topper@sifive.com>2022-04-15 17:20:57 -0700
commit9d86bf825c21279abfe318317d1a22b007331fa3 (patch)
treeff6c96712e83ed4a1a250b7a29855baa4b098f08 /llvm/lib/Transforms/Utils/ModuleUtils.cpp
parent353f0a8e43f7e1d12ac96c5e8c37c4d887f51fe2 (diff)
downloadllvm-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