https://bugs.llvm.org/show_bug.cgi?id=42682
Bug ID: 42682
Summary: LoopSafetyInfo::allLoopPathsLeadToBlock ignores
potential endless loops
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Core LLVM classes
Assignee: unassignedb...@nondot.org
Reporter: jdoerf...@anl.gov
CC: llvm-bugs@lists.llvm.org
Created attachment 22259
--> https://bugs.llvm.org/attachment.cgi?id=22259&action=edit
reproducer
The attached reproducer shows how SimpleLoopSafetyInfo::isGuaranteedToExecute()
assumes the store 7 is executed even though it could be dead if the value of c
(%arg) is 0. The problem seems to be in LoopSafetyInfo::allLoopPathsLeadToBlock
though. I have not investigated if any transformations that use this interface
are potentially using wrong information.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs