[LSR][term-fold] Ensure the simple recurrence is from the current loop (#83085)
If the phi node found by matchSimpleRecurrence is not from the current loop, then isAlmostDeadIV panics. With this patch we bail out early. Signed-off-by:Patrick O'Neill <patrick@rivosinc.com> --------- Signed-off-by:
Patrick O'Neill <patrick@rivosinc.com>
parent
bdfebc31
Please register or sign in to comment