Skip to content
Commit 34659de5 authored by Simon Pilgrim's avatar Simon Pilgrim
Browse files

[InstCombine][X86] simplifyX86immShift - convert variable in-range vector...

[InstCombine][X86] simplifyX86immShift - convert variable in-range vector shift by scalar amounts to generic shifts (PR40391)

The sll/srl/sra scalar vector shifts can be replaced with generic shifts if the shift amount is known to be in range.

This also required public DemandedElts variants of llvm::computeKnownBits to be exposed (PR36319).
parent 1adfa4c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment