aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authoraengelke <engelke@in.tum.de>2024-06-06 17:14:39 +0200
committerGitHub <noreply@github.com>2024-06-06 17:14:39 +0200
commitac5e278067033636d51bbee41a6ddb9869d0455b (patch)
treeed526d64fd5677b3c0341c8a6fbdcd072097a101 /llvm/lib/Support/VirtualFileSystem.cpp
parentc0a8fb2120c6cf1e3006d6cc45eccef6fb5069f5 (diff)
downloadllvm-ac5e278067033636d51bbee41a6ddb9869d0455b.zip
llvm-ac5e278067033636d51bbee41a6ddb9869d0455b.tar.gz
llvm-ac5e278067033636d51bbee41a6ddb9869d0455b.tar.bz2
[X86] Skip AMX type lowering when AMX is not used (#92910)
The pass iterates over the IR multiple times, but most code doesn't use AMX. Therefore, do a single iteration in advance to check whether a function uses AMX at all, and exit early if it doesn't. This makes the function-has-AMX path slightly more expensive, but AMX users probably care a lot less about compile time than JIT users (which tend to not use AMX). For us, it reduces the time spent in this pass from 0.62% to 0.12%. Ideally, we wouldn't even need to iterate over the function to determine that it doesn't use AMX.
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions