aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-03-10 14:37:09 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-03-11 14:25:22 +0100
commit2489cbaa8057c736475fd88990f4f6dbf022873d (patch)
treef1c9bb289f2a1662c7ef7d5e62d5b202cbe8d697 /llvm/lib/Transforms/Utils/Local.cpp
parent8368e4d54c459fe173d76277f17c632478e91add (diff)
downloadllvm-2489cbaa8057c736475fd88990f4f6dbf022873d.zip
llvm-2489cbaa8057c736475fd88990f4f6dbf022873d.tar.gz
llvm-2489cbaa8057c736475fd88990f4f6dbf022873d.tar.bz2
[PowerPC] Fix infinite loop in peephole CR optimization (PR49509)
If we encounter a degenerate select node where both operands are the same, then we can continue negating the condition while swapping operands, resulting in an infinite loop. Avoid this by bailing out if both operands are the same. Fixes https://bugs.llvm.org/show_bug.cgi?id=49509. Differential Revision: https://reviews.llvm.org/D98340
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions