diff options
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index b0d898738a5..c5f92a536b7 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -825,10 +825,10 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) { "CVTPH2PS output type should be 32-bit float vector"); // Constant folding: Convert to generic half to single conversion. - if (auto CIZero = dyn_cast<ConstantAggregateZero>(Arg)) + if (isa<ConstantAggregateZero>(Arg)) return ReplaceInstUsesWith(*II, ConstantAggregateZero::get(RetType)); - if (auto CIHalf = dyn_cast<ConstantDataVector>(Arg)) { + if (isa<ConstantDataVector>(Arg)) { auto VectorHalfAsShorts = Arg; if (RetWidth < ArgWidth) { SmallVector<int, 8> SubVecMask; |