mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-03 11:08:32 +00:00
Fix a bug in a recent patch. This fixes UnitTests/Vector/Altivec/casts.c on
PPC/altivec git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28698 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
475c55393a
commit
18a4af2ba6
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user