diff options
author | Zaara Syeda <syzaara@ca.ibm.com> | 2022-07-07 14:29:06 -0400 |
---|---|---|
committer | Zaara Syeda <syzaara@ca.ibm.com> | 2022-07-07 15:11:33 -0400 |
commit | 58b9666dc1a09819377ae585b4718ef2ea951970 (patch) | |
tree | 0c4ad67552beb9de4aaf4d368b362abf57d8e4e3 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | f67fc3acad70c20d8088b72ee9563690c8ab9be0 (diff) | |
download | llvm-58b9666dc1a09819377ae585b4718ef2ea951970.zip llvm-58b9666dc1a09819377ae585b4718ef2ea951970.tar.gz llvm-58b9666dc1a09819377ae585b4718ef2ea951970.tar.bz2 |
[LSR] Fix bug - check if loop has preheader before calling isInductionPHI
Fix bug exposed by https://reviews.llvm.org/D125990
rewriteLoopExitValues calls InductionDescriptor::isInductionPHI which requires
the PHI node to have an incoming edge from the loop preheader. This adds checks
before calling InductionDescriptor::isInductionPHI to see that the loop has a
preheader. Also did some refactoring.
Differential Revision: https://reviews.llvm.org/D129297
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions