[PATCH] D125398: [ControlHeightReduction] Freeze condition when converting select to branch

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 11 09:19:24 PDT 2022


nikic created this revision.
Herald added subscribers: wenlei, hiraditya.
Herald added a project: All.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

While select conditions can be poison, branch on poison is immediate UB. As such, we need to freeze the condition when converting a select into a branch.


https://reviews.llvm.org/D125398

Files:
  llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
  llvm/test/Transforms/PGOProfile/chr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125398.428689.patch
Type: text/x-patch
Size: 23077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220511/90a9f024/attachment.bin>


More information about the llvm-commits mailing list