mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
Added code that ensures that we don't try to reduce an empty vector of basic
blocks. This fixes the bugpoint regressions. llvm-svn: 7569
This commit is contained in:
parent
f62d020c88
commit
4f1ed9c65b
@ -142,7 +142,7 @@ public:
|
||||
|
||||
virtual TestResult doTest(std::vector<BasicBlock*> &Prefix,
|
||||
std::vector<BasicBlock*> &Kept) {
|
||||
if (TestBlocks(Kept))
|
||||
if (!Kept.empty() && TestBlocks(Kept))
|
||||
return KeepSuffix;
|
||||
if (!Prefix.empty() && TestBlocks(Prefix))
|
||||
return KeepPrefix;
|
||||
|
Loading…
Reference in New Issue
Block a user