From 1f3fa2133adfaf55ab9670aa85a6bb1c9a783fd3 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Sat, 21 Nov 2015 16:37:09 +0000 Subject: remove unnecessary temp variables; NFC llvm-svn: 253786 --- llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Transforms/InstCombine') diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index dbc963a2b35..7abf92a5ca6 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -1288,9 +1288,8 @@ Value *InstCombiner::SimplifyVectorOp(BinaryOperator &Inst) { LShuf->getMask() == RShuf->getMask()) { Value *NewBO = CreateBinOpAsGiven(Inst, LShuf->getOperand(0), RShuf->getOperand(0), Builder); - Value *Res = Builder->CreateShuffleVector(NewBO, + return Builder->CreateShuffleVector(NewBO, UndefValue::get(NewBO->getType()), LShuf->getMask()); - return Res; } } @@ -1335,9 +1334,8 @@ Value *InstCombiner::SimplifyVectorOp(BinaryOperator &Inst) { NewRHS = C2; } Value *NewBO = CreateBinOpAsGiven(Inst, NewLHS, NewRHS, Builder); - Value *Res = Builder->CreateShuffleVector(NewBO, + return Builder->CreateShuffleVector(NewBO, UndefValue::get(Inst.getType()), Shuffle->getMask()); - return Res; } } -- cgit v1.2.3