Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
llvm-epi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roger Ferrer
llvm-epi
Commits
bad4db8b
Commit
bad4db8b
authored
6 years ago
by
Max Kazantsev
Browse files
Options
Downloads
Patches
Plain Diff
[NFC] Replace readonly SmallVectorImpl with ArrayRef
llvm-svn: 353273
parent
4c3ba384
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
+1
-1
1 addition, 1 deletion
llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
+2
-3
2 additions, 3 deletions
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
with
3 additions
and
4 deletions
llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
+
1
−
1
View file @
bad4db8b
...
@@ -46,7 +46,7 @@ void DeleteDeadBlock(BasicBlock *BB, DomTreeUpdater *DTU = nullptr);
...
@@ -46,7 +46,7 @@ void DeleteDeadBlock(BasicBlock *BB, DomTreeUpdater *DTU = nullptr);
/// no predecessors that are not being deleted themselves. \p BBs must have no
/// no predecessors that are not being deleted themselves. \p BBs must have no
/// duplicating blocks. If there are loops among this set of blocks, all
/// duplicating blocks. If there are loops among this set of blocks, all
/// relevant loop info updates should be done before this function is called.
/// relevant loop info updates should be done before this function is called.
void
DeleteDeadBlocks
(
SmallVectorImpl
<
BasicBlock
*>
&
BBs
,
void
DeleteDeadBlocks
(
ArrayRef
<
BasicBlock
*>
BBs
,
DomTreeUpdater
*
DTU
=
nullptr
);
DomTreeUpdater
*
DTU
=
nullptr
);
/// We know that BB has one predecessor. If there are any single-entry PHI nodes
/// We know that BB has one predecessor. If there are any single-entry PHI nodes
...
...
This diff is collapsed.
Click to expand it.
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
+
2
−
3
View file @
bad4db8b
...
@@ -48,11 +48,10 @@
...
@@ -48,11 +48,10 @@
using
namespace
llvm
;
using
namespace
llvm
;
void
llvm
::
DeleteDeadBlock
(
BasicBlock
*
BB
,
DomTreeUpdater
*
DTU
)
{
void
llvm
::
DeleteDeadBlock
(
BasicBlock
*
BB
,
DomTreeUpdater
*
DTU
)
{
SmallVector
<
BasicBlock
*
,
1
>
BBs
=
{
BB
};
DeleteDeadBlocks
({
BB
},
DTU
);
DeleteDeadBlocks
(
BBs
,
DTU
);
}
}
void
llvm
::
DeleteDeadBlocks
(
SmallVectorImpl
<
BasicBlock
*>
&
BBs
,
void
llvm
::
DeleteDeadBlocks
(
ArrayRef
<
BasicBlock
*>
BBs
,
DomTreeUpdater
*
DTU
)
{
DomTreeUpdater
*
DTU
)
{
#ifndef NDEBUG
#ifndef NDEBUG
// Make sure that all predecessors of each dead block is also dead.
// Make sure that all predecessors of each dead block is also dead.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment