[all-commits] [llvm/llvm-project] 2489cb: [PowerPC] Fix infinite loop in peephole CR optimiz...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Thu Mar 11 05:26:30 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2489cbaa8057c736475fd88990f4f6dbf022873d
https://github.com/llvm/llvm-project/commit/2489cbaa8057c736475fd88990f4f6dbf022873d
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2021-03-11 (Thu, 11 Mar 2021)
Changed paths:
M llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
A llvm/test/CodeGen/PowerPC/pr49509.ll
Log Message:
-----------
[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
More information about the All-commits
mailing list