[PATCH] D120869: [IROutliner] Strip loop info when moving code into outlined function.
Andrew Litteken via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 2 22:10:16 PST 2022
AndrewLitteken created this revision.
AndrewLitteken added a reviewer: paquette.
Herald added subscribers: ormris, hiraditya.
Herald added a project: All.
AndrewLitteken requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
As pointed out in https://github.com/llvm/llvm-project/issues/54155#issuecomment-1057465479, there was a crash when loop info was being outlined. It was not being properly stripped and adjusted, so would point to the wrong location. This uses similar logic found in the CodeExtractor to adjust the loop debug info.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120869
Files:
llvm/lib/Transforms/IPO/IROutliner.cpp
llvm/test/Transforms/IROutliner/outlining-strip-loop-info.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120869.412604.patch
Type: text/x-patch
Size: 10700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220303/9f47493e/attachment.bin>
More information about the llvm-commits
mailing list