forked from OSchip/llvm-project
[GVNSink] Simplify code. NFC.
This commit is contained in:
parent
f25a1b4f58
commit
66b9f5f7f0
|
@ -360,12 +360,8 @@ public:
|
||||||
setOpcode(I->getOpcode());
|
setOpcode(I->getOpcode());
|
||||||
setType(I->getType());
|
setType(I->getType());
|
||||||
|
|
||||||
if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(I)) {
|
if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(I))
|
||||||
ArrayRef<int> OrigMask = SVI->getShuffleMask();
|
ShuffleMask = SVI->getShuffleMask().copy(A);
|
||||||
int *Mask = A.Allocate<int>(OrigMask.size());
|
|
||||||
llvm::copy(OrigMask, Mask);
|
|
||||||
ShuffleMask = ArrayRef<int>(Mask, OrigMask.size());
|
|
||||||
}
|
|
||||||
|
|
||||||
for (auto &U : I->uses())
|
for (auto &U : I->uses())
|
||||||
op_push_back(U.getUser());
|
op_push_back(U.getUser());
|
||||||
|
|
Loading…
Reference in New Issue