[llvm] d081296 - [Attributor] Check all NoFPClass attributes found in the IR
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 6 21:30:34 PDT 2023
Author: Johannes Doerfert
Date: 2023-07-06T21:30:04-07:00
New Revision: d081296212f24c75f994044563434189ac47e915
URL: https://github.com/llvm/llvm-project/commit/d081296212f24c75f994044563434189ac47e915
DIFF: https://github.com/llvm/llvm-project/commit/d081296212f24c75f994044563434189ac47e915.diff
LOG: [Attributor] Check all NoFPClass attributes found in the IR
Added:
Modified:
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index d682de6e3c4847..85b1f0328fc40c 100644
--- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -10301,8 +10301,8 @@ struct AANoFPClassImpl : AANoFPClass {
SmallVector<Attribute> Attrs;
A.getAttrs(getIRPosition(), {Attribute::NoFPClass}, Attrs, false);
- if (!Attrs.empty()) {
- addKnownBits(Attrs[0].getNoFPClass());
+ for (const auto &Attr : Attrs) {
+ addKnownBits(Attr.getNoFPClass());
return;
}
More information about the llvm-commits
mailing list