diff options
author | Florian Hahn <florian.hahn@arm.com> | 2018-02-13 10:02:52 +0000 |
---|---|---|
committer | Florian Hahn <florian.hahn@arm.com> | 2018-02-13 10:02:52 +0000 |
commit | 1f95ef1815c9b6a961811ec78e44d14b277abdd3 (patch) | |
tree | 2879b175920dae8f95db19a9636f24bbfceb4834 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 92e0bb5c9558bde77f8cb7a8d4b5e3d75070c7c7 (diff) | |
download | llvm-1f95ef1815c9b6a961811ec78e44d14b277abdd3.zip llvm-1f95ef1815c9b6a961811ec78e44d14b277abdd3.tar.gz llvm-1f95ef1815c9b6a961811ec78e44d14b277abdd3.tar.bz2 |
[LoopInterchange] Check number of latch successors before accessing them.
In cases where the OuterMostLoopLatchBI only has a single successor,
accessing the second successor will fail.
This fixes a failure when building the test-suite with loop-interchange
enabled.
Reviewers: mcrosier, karthikthecool, davide
Reviewed by: karthikthecool
Differential Revision: https://reviews.llvm.org/D42906
llvm-svn: 324994
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions