[all-commits] [llvm/llvm-project] b265ca: [NFC] Bail out for scalable vectors before calling...
Christopher Tetreault via All-commits
all-commits at lists.llvm.org
Tue Jun 16 13:41:58 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b265cad93e70815cfad5eaaacfb095276a9a4213
https://github.com/llvm/llvm-project/commit/b265cad93e70815cfad5eaaacfb095276a9a4213
Author: Christopher Tetreault <ctetreau at quicinc.com>
Date: 2020-06-16 (Tue, 16 Jun 2020)
Changed paths:
M llvm/lib/Analysis/ConstantFolding.cpp
Log Message:
-----------
[NFC] Bail out for scalable vectors before calling getNumElements
Summary:
Move the bail out logic to before constructing the Result and Lane
vectors. This is both potentially faster, and avoids calling
getNumElements on a potentially scalable vector
Reviewers: efriedma, sunfish, chandlerc, c-rhodes, fpetrogalli
Reviewed By: fpetrogalli
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D81619
More information about the All-commits
mailing list