aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/MathExtrasTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-06-28 23:34:25 -0700
committerCraig Topper <craig.topper@sifive.com>2024-06-28 23:37:05 -0700
commit0e9380177092f0dfc1acf778aeb08d47623c4db3 (patch)
tree297ada28ad23cbb9bd6ed26e35a2452fb8268d28 /llvm/unittests/Support/MathExtrasTest.cpp
parent3e53c97d33210db68188e731e93ee48dbaeeae32 (diff)
downloadllvm-0e9380177092f0dfc1acf778aeb08d47623c4db3.zip
llvm-0e9380177092f0dfc1acf778aeb08d47623c4db3.tar.gz
llvm-0e9380177092f0dfc1acf778aeb08d47623c4db3.tar.bz2
[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.
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions