diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-06-06 22:26:02 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-06-06 22:26:02 +0000 |
| commit | 95cebb082feffbc663791a6828ea476dc14f6ba4 (patch) | |
| tree | 5c97e37b290bd5c45d04e6407fda531b71b23466 /llvm/lib/Transforms/Scalar | |
| parent | 16826c3503c8b5e6f87c6e87e5320ce8e47db814 (diff) | |
| download | bcm5719-llvm-95cebb082feffbc663791a6828ea476dc14f6ba4.tar.gz bcm5719-llvm-95cebb082feffbc663791a6828ea476dc14f6ba4.zip | |
Fix a bug in a recent patch. This fixes UnitTests/Vector/Altivec/casts.c on
PPC/altivec
llvm-svn: 28698
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 3a099af9e98..083acafe326 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -5169,7 +5169,7 @@ Instruction *InstCombiner::visitCastInst(CastInst &CI) { if (((Tmp = dyn_cast<CastInst>(SVI->getOperand(0))) && Tmp->getOperand(0)->getType() == CI.getType()) || ((Tmp = dyn_cast<CastInst>(SVI->getOperand(1))) && - Tmp->getOperand(1)->getType() == CI.getType())) { + Tmp->getOperand(0)->getType() == CI.getType())) { Value *LHS = InsertOperandCastBefore(SVI->getOperand(0), CI.getType(), &CI); Value *RHS = InsertOperandCastBefore(SVI->getOperand(1), |

