[llvm] r362094 - [ARM] LowerVECTOR_SHUFFLE - fix uninitialized variable warnings. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu May 30 07:01:24 PDT 2019
Author: rksimon
Date: Thu May 30 07:01:24 2019
New Revision: 362094
URL: http://llvm.org/viewvc/llvm-project?rev=362094&view=rev
Log:
[ARM] LowerVECTOR_SHUFFLE - fix uninitialized variable warnings. NFCI.
Modified:
llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=362094&r1=362093&r2=362094&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Thu May 30 07:01:24 2019
@@ -7007,8 +7007,8 @@ static SDValue LowerVECTOR_SHUFFLE(SDVal
DAG.getConstant(Lane, dl, MVT::i32));
}
- bool ReverseVEXT;
- unsigned Imm;
+ bool ReverseVEXT = false;
+ unsigned Imm = 0;
if (isVEXTMask(ShuffleMask, VT, ReverseVEXT, Imm)) {
if (ReverseVEXT)
std::swap(V1, V2);
@@ -7033,8 +7033,8 @@ static SDValue LowerVECTOR_SHUFFLE(SDVal
// source operands and with masks corresponding to both results of one of
// these operations, DAG memoization will ensure that a single node is
// used for both shuffles.
- unsigned WhichResult;
- bool isV_UNDEF;
+ unsigned WhichResult = 0;
+ bool isV_UNDEF = false;
if (unsigned ShuffleOpc = isNEONTwoResultShuffleMask(
ShuffleMask, VT, WhichResult, isV_UNDEF)) {
if (isV_UNDEF)
More information about the llvm-commits
mailing list