OSDN Git Service

[llvm] Prevent infinite loop in InstCombine of select statements
authorTres Popp <tpopp@google.com>
Mon, 18 Jan 2021 22:40:22 +0000 (23:40 +0100)
committerTres Popp <tpopp@google.com>
Tue, 19 Jan 2021 09:31:48 +0000 (10:31 +0100)
commita003f26539cf4db744655e76c41f4c4a8913f116
tree2a57e775dd5c8240974034e5137610b3a66c1c99
parentfb5b12e42ef2255aaf6ab43cb426955257302531
[llvm] Prevent infinite loop in InstCombine of select statements

This fixes an issue where the RHS and LHS the comparison operation
creating the predicate were swapped back and forth forever.

Differential Revision: https://reviews.llvm.org/D94934
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp