mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Added code that ensures that we don't try to reduce an empty vector of basic
blocks. This fixes the bugpoint regressions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7569 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e5bb2d94d9
commit
5cfff2545d
@ -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…
x
Reference in New Issue
Block a user