This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Recognize x & (-1 >> (32 - y)) pattern.
ClosedPublic

Authored by lebedev.ri on Jun 11 2018, 3:59 AM.

Details

Summary

D47980 will canonicalize the x << (32 - y) >> (32 - y),
which is the pattern the AMDGPU expects to x & (-1 >> (32 - y)),
which is not recognized by AMDGPU.

Thus, it needs to be recognized, too.

Diff Detail

Repository
rL LLVM