mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
use ConstantVector::getSplat in a few places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148929 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -851,8 +851,8 @@ Value *InstCombiner::SimplifyDemandedVectorElts(Value *V, APInt DemandedElts,
|
||||
}
|
||||
|
||||
// If we changed the constant, return it.
|
||||
Constant *NewCP = ConstantVector::get(Elts);
|
||||
return NewCP != CV ? NewCP : 0;
|
||||
Constant *NewCV = ConstantVector::get(Elts);
|
||||
return NewCV != CV ? NewCV : 0;
|
||||
}
|
||||
|
||||
if (ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(V)) {
|
||||
|
||||
Reference in New Issue
Block a user