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.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D125898
[ControlHeightReduction] Use logical and ClosedPublic Authored by nikic on May 18 2022, 9:05 AM.
Details Summary 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.
Diff Detail Event TimelineThis revision is now accepted and ready to land.May 26 2022, 6:22 AM Closed by commit rGc8eb83f2d007: [ControlHeightReduction] Use logical and (authored by nikic). · Explain WhyMay 26 2022, 9:03 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 431619 llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
llvm/test/Transforms/PGOProfile/chr.ll
|