[all-commits] [llvm/llvm-project] 97a7a9: [CodeGen] Fix up warnings in visitEXTRACT_SUBVECTOR
david-arm via All-commits
all-commits at lists.llvm.org
Wed Jul 1 07:11:21 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 97a7a9abb25d86fd831b403a1d13de6d62e7a8b5
https://github.com/llvm/llvm-project/commit/97a7a9abb25d86fd831b403a1d13de6d62e7a8b5
Author: David Sherwood <david.sherwood at arm.com>
Date: 2020-07-01 (Wed, 01 Jul 2020)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Log Message:
-----------
[CodeGen] Fix up warnings in visitEXTRACT_SUBVECTOR
It's perfectly valid to do certain DAG combines where we extract
subvectors from a concat vector when we have scalable vector types.
However, we can do this in a way that avoids generating compiler
warnings by replacing calls to getVectorNumElements() with
getVectorMinNumElements(). Due to the way subvector extracts are
designed to work with scalable vector types this is ok.
This eliminates some warnings from existing tests in this file:
llvm/test/CodeGen/AArch64/sve-intrinsics-loads.ll
Differential Revision: https://reviews.llvm.org/D82655
More information about the All-commits
mailing list