[all-commits] [llvm/llvm-project] 20531b: [RelLookupTableConverter] Avoid querying TTI for d...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed Mar 16 02:39:44 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 20531b3a6b091b8dd2e3992aec11ac10581e91e2
https://github.com/llvm/llvm-project/commit/20531b3a6b091b8dd2e3992aec11ac10581e91e2
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-03-16 (Wed, 16 Mar 2022)
Changed paths:
M llvm/lib/Transforms/Utils/RelLookupTableConverter.cpp
Log Message:
-----------
[RelLookupTableConverter] Avoid querying TTI for declarations
This code queries TTI on a single function, which is considered to
be representative. This is a bit odd, but probably fine in practice.
However, I think we should at least avoid querying declarations,
which e.g. will generally lack target attributes, and for which
we don't seem to ever query TTI in other places.
More information about the All-commits
mailing list