mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[VectorCombine] Remove unneeded InsertPointGuard (NFCI).
All users of the builder should set an insert point before using the builder. There should be no need for using InsertPointGuard here.
This commit is contained in:
parent
1536faf532
commit
3932fb02f9
@ -910,7 +910,6 @@ bool VectorCombine::scalarizeLoadExtract(Instruction &I) {
|
||||
// Replace extracts with narrow scalar loads.
|
||||
for (User *U : LI->users()) {
|
||||
auto *EI = cast<ExtractElementInst>(U);
|
||||
IRBuilder<>::InsertPointGuard Guard(Builder);
|
||||
Builder.SetInsertPoint(EI);
|
||||
Value *GEP = Builder.CreateInBoundsGEP(
|
||||
FixedVT, Ptr, {Builder.getInt32(0), EI->getOperand(1)});
|
||||
|
Loading…
Reference in New Issue
Block a user