aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineDominators.cpp
diff options
context:
space:
mode:
authorChristopher Tetreault <ctetreau@quicinc.com>2020-06-16 13:19:15 -0700
committerChristopher Tetreault <ctetreau@quicinc.com>2020-06-16 13:41:29 -0700
commitb265cad93e70815cfad5eaaacfb095276a9a4213 (patch)
treeb6146de5f7b18cfa66978c9ed3a754f86a272cf3 /llvm/lib/CodeGen/MachineDominators.cpp
parent747486991cc452f7a1861e4a7a30d069d5f34aab (diff)
downloadllvm-b265cad93e70815cfad5eaaacfb095276a9a4213.zip
llvm-b265cad93e70815cfad5eaaacfb095276a9a4213.tar.gz
llvm-b265cad93e70815cfad5eaaacfb095276a9a4213.tar.bz2
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineDominators.cpp')
0 files changed, 0 insertions, 0 deletions