[all-commits] [llvm/llvm-project] 9e66e9: [CodeGen] Fix wrong use of getVectorNumElements() ...
david-arm via All-commits
all-commits at lists.llvm.org
Wed Jul 8 01:58:09 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 9e66e9c30a19dc5923c85d3a3a4b757935299fba
https://github.com/llvm/llvm-project/commit/9e66e9c30a19dc5923c85d3a3a4b757935299fba
Author: David Sherwood <david.sherwood at arm.com>
Date: 2020-07-08 (Wed, 08 Jul 2020)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
Log Message:
-----------
[CodeGen] Fix wrong use of getVectorNumElements() in DAGTypeLegalizer::SplitVecRes_ExtendOp
In DAGTypeLegalizer::SplitVecRes_ExtendOp I have replaced an invalid
call to getVectorNumElements() with a call to getVectorMinNumElements(),
since the code path works for both fixed and scalable vectors.
This fixes up a warning in the following test:
sve-sext-zext.ll
Differential Revision: https://reviews.llvm.org/D83197
More information about the All-commits
mailing list