[llvm] r181142 - LoopVectorizer: Cleanup of miminimum/maximum pattern match code
Arnold Schwaighofer
aschwaighofer at apple.com
Sat May 4 18:54:44 PDT 2013
Author: arnolds
Date: Sat May 4 20:54:44 2013
New Revision: 181142
URL: http://llvm.org/viewvc/llvm-project?rev=181142&view=rev
Log:
LoopVectorizer: Cleanup of miminimum/maximum pattern match code
No need for setting the operands. The pointers are going to be bound by the
matcher.
radar://13723044
Modified:
llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=181142&r1=181141&r2=181142&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Sat May 4 20:54:44 2013
@@ -2991,8 +2991,8 @@ LoopVectorizationLegality::isMinMaxSelec
if (!Cmp->hasOneUse())
return ReductionInstDesc(false, I);
- Value *CmpLeft = Cmp->getOperand(0);
- Value *CmpRight = Cmp->getOperand(1);
+ Value *CmpLeft;
+ Value *CmpRight;
// Look for a min/max pattern.
if (m_UMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select))
More information about the llvm-commits
mailing list