Skip to content
Commit 8b826482 authored by Craig Topper's avatar Craig Topper
Browse files

[X86] Turn (and (anyextend (shl X, C1), C2)) into (shl (and (anyextend X), (C1...

[X86] Turn (and (anyextend (shl X, C1), C2)) into (shl (and (anyextend X), (C1 >> C2), C2) if the AND could match a movzx.

There's one slight regression in here because we don't check that the immediate
already allowed movzx before the shift. I'll fix that next.

llvm-svn: 358804
parent 8f28f7a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment