When the 3rd argument to these intrinsics is zero, lowering them
to shift instructions produces poison values, since we end up with
shift amounts equal to the number of bits in the shifted value. This
means we can only lower these intrinsics if we can prove that the
3rd argument is not zero.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
3452 ↗ | (On Diff #171216) | Small nit in this comment and the commit title/message: posion -> poison? |
Comment Actions
LGTM besides formatting
lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
3454 ↗ | (On Diff #171221) | Extra space before ( |