[all-commits] [llvm/llvm-project] 8d6e86: [LSR][term-fold] Ensure the simple recurrence is f...
patrick-rivos via All-commits
all-commits at lists.llvm.org
Mon Mar 4 16:40:52 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8d6e867eb2de32ce28ece972c91405db976192c3
https://github.com/llvm/llvm-project/commit/8d6e867eb2de32ce28ece972c91405db976192c3
Author: Patrick O'Neill <102189596+patrick-rivos at users.noreply.github.com>
Date: 2024-03-04 (Mon, 04 Mar 2024)
Changed paths:
M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
M llvm/lib/Transforms/Utils/LoopUtils.cpp
A llvm/test/Transforms/LoopStrengthReduce/lsr-unreachable-bb-phi-node.ll
Log Message:
-----------
[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 at rivosinc.com>
---------
Signed-off-by: Patrick O'Neill <patrick at rivosinc.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list