mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[GVNSink] Simplify code. NFC.
This commit is contained in:
parent
d6b2d2a4e1
commit
d10a84f86e
@ -360,12 +360,8 @@ public:
|
||||
setOpcode(I->getOpcode());
|
||||
setType(I->getType());
|
||||
|
||||
if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(I)) {
|
||||
ArrayRef<int> OrigMask = SVI->getShuffleMask();
|
||||
int *Mask = A.Allocate<int>(OrigMask.size());
|
||||
llvm::copy(OrigMask, Mask);
|
||||
ShuffleMask = ArrayRef<int>(Mask, OrigMask.size());
|
||||
}
|
||||
if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(I))
|
||||
ShuffleMask = SVI->getShuffleMask().copy(A);
|
||||
|
||||
for (auto &U : I->uses())
|
||||
op_push_back(U.getUser());
|
||||
|
Loading…
Reference in New Issue
Block a user