]> granicus.if.org Git - llvm/commit
Check bool attribute value in getOptionalBoolLoopAttribute.
authorAlina Sbirlea <asbirlea@google.com>
Tue, 29 Jan 2019 22:33:20 +0000 (22:33 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Tue, 29 Jan 2019 22:33:20 +0000 (22:33 +0000)
commitdb7033fef7f80eeed6f7b5f433eade7be3146b50
treecd4a04693f8a931b8e884eb128ac159ae0cfd7b6
parent0bd89c0d565f899e2d61c277c80f6bd0a92c1174
Check bool attribute value in getOptionalBoolLoopAttribute.

Summary:
Check the bool value of the attribute in getOptionalBoolLoopAttribute
not just its existance.
Eliminates the warning noise generated when vectorization is explicitly disabled.

Reviewers: Meinersbur, hfinkel, dmgreen

Subscribers: jlebar, sanjoy, llvm-commits

Differential Revision: https://reviews.llvm.org/D57260

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352555 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopUtils.cpp
test/Transforms/LoopVectorize/no_switch_disable_vectorization.ll [new file with mode: 0644]