[PATCH] D134084: [LV] Remove FIXME about NoImplicitFloat. NFC
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 16 14:56:24 PDT 2022
craig.topper created this revision.
craig.topper added reviewers: efriedma, fhahn, RKSimon, nikic, reames.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added a subscriber: pcwang-thead.
Herald added a project: LLVM.
My understanding is that NoImplicitFloat, despite it's name, is
supposed to disable all vectors not just float vectors.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D134084
Files:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Index: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
===================================================================
--- llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -10234,10 +10234,8 @@
}
}
- // Check the function attributes to see if implicit floats are allowed.
- // FIXME: This check doesn't seem possibly correct -- what if the loop is
- // an integer loop and the vector instructions selected are purely integer
- // vector instructions?
+ // Check the function attributes to see if implicit floats or vectors are
+ // allowed.
if (F->hasFnAttribute(Attribute::NoImplicitFloat)) {
reportVectorizationFailure(
"Can't vectorize when the NoImplicitFloat attribute is used",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134084.460916.patch
Type: text/x-patch
Size: 775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220916/03c2286d/attachment.bin>
More information about the llvm-commits
mailing list