diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2019-10-24 16:17:19 -0700 |
---|---|---|
committer | Jordan Rupprecht <rupprecht@google.com> | 2019-10-24 16:35:45 -0700 |
commit | 6d424a161bf3e52730371da0b9439ed93a8ce406 (patch) | |
tree | 6011622f3d682c4e0b1d055cd6fef8523aaa4147 /clang/lib/CodeGen/CGLoopInfo.cpp | |
parent | 7fff716ec4741f84358a977ddf0cd5ccf448d5c5 (diff) | |
download | bcm5719-llvm-6d424a161bf3e52730371da0b9439ed93a8ce406.tar.gz bcm5719-llvm-6d424a161bf3e52730371da0b9439ed93a8ce406.zip |
Revert "Recommit "[Clang] Pragma vectorize_width() implies vectorize(enable)""
This reverts commit 80371c74ae63d2f260bcc75408be9c6f81e38465.
Given the following source:
```
void a() {
for (;;)
;
}
```
It incorrectly enables vectorization (with vector width 1), as well as generating a warning that vectorization could not be performed.
Diffstat (limited to 'clang/lib/CodeGen/CGLoopInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGLoopInfo.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CGLoopInfo.cpp b/clang/lib/CodeGen/CGLoopInfo.cpp index c21d4feee7a..6822c6286fe 100644 --- a/clang/lib/CodeGen/CGLoopInfo.cpp +++ b/clang/lib/CodeGen/CGLoopInfo.cpp @@ -270,14 +270,6 @@ LoopInfo::createLoopVectorizeMetadata(const LoopAttributes &Attrs, // Setting vectorize.width if (Attrs.VectorizeWidth > 0) { - // This implies vectorize.enable = true, but only add it when it is not - // already enabled. - if (Attrs.VectorizeEnable != LoopAttributes::Enable) - Args.push_back( - MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.vectorize.enable"), - ConstantAsMetadata::get(ConstantInt::get( - llvm::Type::getInt1Ty(Ctx), 1))})); - Metadata *Vals[] = { MDString::get(Ctx, "llvm.loop.vectorize.width"), ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt32Ty(Ctx), |