[all-commits] [llvm/llvm-project] 0e9380: [RISCV] Speed up RISCVISAInfo::updateImplication.
Craig Topper via All-commits
all-commits at lists.llvm.org
Fri Jun 28 23:57:58 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0e9380177092f0dfc1acf778aeb08d47623c4db3
https://github.com/llvm/llvm-project/commit/0e9380177092f0dfc1acf778aeb08d47623c4db3
Author: Craig Topper <craig.topper at sifive.com>
Date: 2024-06-28 (Fri, 28 Jun 2024)
Changed paths:
M llvm/lib/TargetParser/RISCVISAInfo.cpp
Log Message:
-----------
[RISCV] Speed up RISCVISAInfo::updateImplication.
We don't need to use a SmallSetVector to keep track of the worklist.
We only insert into the worklist if the extension is not already
in the Exts map. We immediately add it the Exts map at the same
time we add it to the worklist. If we encounter the extension again
it will already be in Exts so we won't try to add it to the worklist
again. We can just use a SmallVector for the Worklist.
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