forked from OSchip/llvm-project
5be37cb124
This is basically the same patch as D63233, but converted to funnel shifts rather than regular shifts. I did not see a way to effectively share code for these 2 cases though. This follows D79718 and D79827 to re-fix PR37426 because that gets canonicalized to funnel shift intrinsics in IR. I did draft an alternative patch as an enhancement to "shouldSinkOperands()", but that was awkward because we have to key the transform from the select, but then look at both its users and its operands. |
||
---|---|---|
.. | ||
AArch64 | ||
AMDGPU | ||
ARM | ||
Mips | ||
NVPTX | ||
PowerPC | ||
SPARC | ||
X86 | ||
dom-tree.ll | ||
sink-shift-and-trunc.ll | ||
skip-merging-case-block.ll |