Commit 0a88492b authored by Schuyler Eldridge's avatar Schuyler Eldridge
Browse files

Do Shr constant propagation in Legalize



This uses the foldShiftRight method of the ConstantPropagation
Transform when legalizing Shr PrimOps. This has the effect of removing
literals with bit extracts from the MinimumVerilogCompiler.

This makes the formerly private foldShiftRight method of a public
method of the ConstantPropagation companion object.

Tests in the MimimumVerilogCompilerSpec are updated to check that Shr
is handled as intended.

Signed-off-by: default avatarSchuyler Eldridge <schuyler.eldridge@ibm.com>
parent a77122b4
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment