This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Ignore any_extend in mul24 combine
ClosedPublic

Authored by arsenm on May 9 2018, 9:27 AM.

Details

Summary

If a multiply is truncated, SimplifyDemandedBits
sometimes turns a zero_extend of the inputs into an
any_extend, which makes the known bits computation unhelpful.
Ignore these and compute known bits for the underlying value,
since we insert the correct extend type after.

Diff Detail

Event Timeline

arsenm created this revision.May 9 2018, 9:27 AM
kzhuravl accepted this revision.May 9 2018, 9:32 AM

LGTM

This revision is now accepted and ready to land.May 9 2018, 9:32 AM
arsenm closed this revision.May 9 2018, 2:16 PM

r331919