This is an archive of the discontinued LLVM Phabricator instance.

[DAG] Do not combine any_ext when we combine and into zext.
ClosedPublic

Authored by deadalnix on Jan 16 2023, 6:42 PM.

Details

Summary

This transofrm loses information that can be useful for other transforms.

Diff Detail

Event Timeline

deadalnix created this revision.Jan 16 2023, 6:42 PM
deadalnix requested review of this revision.Jan 16 2023, 6:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 16 2023, 6:42 PM

Seems like an improvement.

llvm/test/CodeGen/X86/illegal-bitfield-loadstore.ll
115–120

I'm guessing this is the improvement?

llvm/test/CodeGen/X86/known-signbits-vector.ll
678–684

What happens here?

lebedev.ri accepted this revision.Jan 17 2023, 6:06 AM

LGTM with D141884.
Thanks.

This revision is now accepted and ready to land.Jan 17 2023, 6:06 AM
deadalnix added inline comments.Jan 17 2023, 6:41 AM
llvm/test/CodeGen/X86/illegal-bitfield-loadstore.ll
120

Yes, it also shows up in some regression in D127115

llvm/test/CodeGen/X86/known-signbits-vector.ll
684

Another optimization is defeated. D141884 generalize it so it kicks in again.

This revision was landed with ongoing or failed builds.Jan 19 2023, 4:37 AM
This revision was automatically updated to reflect the committed changes.