[all-commits] [llvm/llvm-project] 190063: [MC] Speed up checkFeatures() (NFCI) (#130936)
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed Mar 12 07:17:13 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 190063464e12d730eef27873ce985e15a5eeee0b
https://github.com/llvm/llvm-project/commit/190063464e12d730eef27873ce985e15a5eeee0b
Author: Nikita Popov <npopov at redhat.com>
Date: 2025-03-12 (Wed, 12 Mar 2025)
Changed paths:
M llvm/lib/MC/MCSubtargetInfo.cpp
Log Message:
-----------
[MC] Speed up checkFeatures() (NFCI) (#130936)
checkFeatures() currently goes through ApplyFeatureFlag(), which will
also handle implied features. This is very slow -- just querying every
feature once takes up 10% of a Rust hello world compile.
However, if we only want to query whether certain features are
set/unset, we can do so directly -- implied features have already been
handled when the FeatureBitset was constructed.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list