mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
This patch changes the saved IRBuilder insert point from BasicBlock::iterator to AssertingVH.
Commit 185883 fixes a bug in the IRBuilder that should fix the ASan bot. AssertingVH can help in exposing some RAUW problems. Thanks Ben and Alexey! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185886 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -66,7 +66,7 @@ private:
|
|||||||
BuilderLocGuard(const BuilderLocGuard &);
|
BuilderLocGuard(const BuilderLocGuard &);
|
||||||
BuilderLocGuard &operator=(const BuilderLocGuard &);
|
BuilderLocGuard &operator=(const BuilderLocGuard &);
|
||||||
IRBuilder<> &Builder;
|
IRBuilder<> &Builder;
|
||||||
BasicBlock::iterator Loc;
|
AssertingVH<Instruction> Loc;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A helper class for numbering instructions in multible blocks.
|
/// A helper class for numbering instructions in multible blocks.
|
||||||
@ -1217,6 +1217,7 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void BoUpSLP::vectorizeTree() {
|
void BoUpSLP::vectorizeTree() {
|
||||||
|
Builder.SetInsertPoint(&F->getEntryBlock());
|
||||||
vectorizeTree(&VectorizableTree[0]);
|
vectorizeTree(&VectorizableTree[0]);
|
||||||
|
|
||||||
// For each vectorized value:
|
// For each vectorized value:
|
||||||
|
Reference in New Issue
Block a user