1
0
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:
Benjamin Kramer 2020-04-01 13:12:46 +02:00
parent d6b2d2a4e1
commit d10a84f86e

View File

@ -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());