summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2013-05-05 01:54:44 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2013-05-05 01:54:44 +0000
commitf852472823fd2182a3ca54bdf4d30ad8a6a6cd57 (patch)
treef4937582037cfbd3a300379426307c48b8721c74 /lib/Transforms
parentc1738fdadd1c969f13bbf09fe9c36fff56ccd709 (diff)
downloadllvm-f852472823fd2182a3ca54bdf4d30ad8a6a6cd57.tar.gz
llvm-f852472823fd2182a3ca54bdf4d30ad8a6a6cd57.tar.bz2
llvm-f852472823fd2182a3ca54bdf4d30ad8a6a6cd57.tar.xz
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181142 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Vectorize/LoopVectorize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index 1c7397bfa6..9f90587551 100644
--- a/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -2991,8 +2991,8 @@ LoopVectorizationLegality::isMinMaxSelectCmpPattern(Instruction *I, ReductionIns
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))