[PATCH] D106041: [WIP][SimpleLoopUnswitch] Re-fix introduction of UB when hoisted condition may be undef or poison
Hyeongyu Kim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 6 00:27:10 PDT 2021
hyeongyukim updated this revision to Diff 377448.
hyeongyukim added a comment.
Add Freeze-loop-unswitch-cond flag.
This flag determines whether to add a freeze to the condition of the loop switch.
When this flag is turned on, the miscompilation is solved, but It will degrade the performance.
The default value of the flag is set to false until the performance problem is completely solved.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106041/new/
https://reviews.llvm.org/D106041
Files:
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
llvm/test/Transforms/SimpleLoopUnswitch/implicit-null-checks.ll
llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106041.377448.patch
Type: text/x-patch
Size: 12088 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211006/ddb97e3f/attachment.bin>
More information about the llvm-commits
mailing list