Page MenuHomePhabricator

[GISel] Correct the known bits of G_ANYEXT
ClosedPublic

Authored by bogner on Aug 20 2020, 5:07 PM.

Details

Summary

Known bits for G_ANYEXT was incorrectly using KnownBits::zext, causing
us to treat the high bits as zero even though they're (by definition)
unknown.

Diff Detail

Event Timeline

bogner created this revision.Aug 20 2020, 5:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 20 2020, 5:07 PM
bogner requested review of this revision.Aug 20 2020, 5:07 PM
arsenm accepted this revision.Aug 20 2020, 5:09 PM

LGTM with int

llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
528–530

Register

534

Register

This revision is now accepted and ready to land.Aug 20 2020, 5:09 PM
bogner marked 2 inline comments as done.Aug 20 2020, 5:16 PM
This revision was landed with ongoing or failed builds.Aug 20 2020, 5:17 PM
This revision was automatically updated to reflect the committed changes.