[PATCH] D125898: [ControlHeightReduction] Use logical and

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 18 09:05:26 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.

Use logical instead of bitwise and to combine conditions, to avoid propagating poison from a later condition if an earlier one is already false. This avoids introducing branch on poison.


https://reviews.llvm.org/D125898

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125898.430401.patch
Type: text/x-patch
Size: 10930 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220518/ba8ae2b3/attachment.bin>


More information about the llvm-commits mailing list