[all-commits] [llvm/llvm-project] 4cb717: [polly] Add nullptr check to fix #113772 (#114206)
Karthika Devi C via All-commits
all-commits at lists.llvm.org
Thu Oct 31 22:45:46 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4cb71701994e129c1beca77134b39137ea8752c3
https://github.com/llvm/llvm-project/commit/4cb71701994e129c1beca77134b39137ea8752c3
Author: Karthika Devi C <quic_kartc at quicinc.com>
Date: 2024-11-01 (Fri, 01 Nov 2024)
Changed paths:
M polly/lib/Analysis/ScopDetection.cpp
A polly/test/ScopDetect/detect-full-functions.ll
Log Message:
-----------
[polly] Add nullptr check to fix #113772 (#114206)
The patch adds a nullptr check before accessing the loop blocks in
'hasPossiblyDistributableLoop' function. The existing check for the
loop’s containment in the region does not capture nullptr cases when the
region covers the entire function. Therefore, it’s better to exit if the
basic block isn’t part of any loop
Fixes #113772.
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