This is an archive of the discontinued LLVM Phabricator instance.

[X86] Promote 16-bit CTTZ_ZERO_UNDEF to 32-bit variant
ClosedPublic

Authored by xbolva00 on Apr 30 2021, 1:43 PM.

Details

Summary

Related to PR50172.

Protects us against regressions after we will start doing cttz(zext(x)) -> zext(cttz(x)) transformation in the middle-end.

Diff Detail

Event Timeline

xbolva00 created this revision.Apr 30 2021, 1:43 PM
xbolva00 requested review of this revision.Apr 30 2021, 1:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 30 2021, 1:43 PM
craig.topper added inline comments.Apr 30 2021, 2:20 PM
llvm/lib/Target/X86/X86ISelLowering.cpp
366–367

Make this an else instead of repeating the BMI check?

xbolva00 updated this revision to Diff 342064.Apr 30 2021, 3:18 PM

Changed to if-else.

xbolva00 updated this revision to Diff 342066.Apr 30 2021, 3:18 PM
xbolva00 marked an inline comment as done.
This revision is now accepted and ready to land.Apr 30 2021, 3:25 PM
This revision was landed with ongoing or failed builds.Apr 30 2021, 3:42 PM
This revision was automatically updated to reflect the committed changes.