mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Surprisingly, we missed a trivial case here. Fix that!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164814 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -930,6 +930,10 @@ Instruction *InstCombiner::visitSelectInst(SelectInst &SI) {
|
||||
Value *V = Builder->CreateShuffleVector(TrueVal, FalseVal, MaskVal);
|
||||
return ReplaceInstUsesWith(SI, V);
|
||||
}
|
||||
|
||||
if (isa<ConstantAggregateZero>(CondVal)) {
|
||||
return ReplaceInstUsesWith(SI, FalseVal);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user