This is an archive of the discontinued LLVM Phabricator instance.

[VE] Optimize trunc related instructions
ClosedPublic

Authored by kaz7 on Aug 6 2020, 3:22 AM.

Details

Summary

Change to not generate truncate instructions if all use of a truncate
operation don't care about higher bits. For example, an i32 add
instruction doesn't care about higher 32 bits in 64 bit registers.
Updates regression tests also.

Diff Detail

Event Timeline

kaz7 created this revision.Aug 6 2020, 3:22 AM
kaz7 requested review of this revision.Aug 6 2020, 3:22 AM
kaz7 updated this revision to Diff 283561.Aug 6 2020, 3:54 AM

Update following clang-tidy comments.

simoll accepted this revision.Aug 6 2020, 9:03 AM

Nice! LGTM :)

This revision is now accepted and ready to land.Aug 6 2020, 9:03 AM
This revision was landed with ongoing or failed builds.Aug 6 2020, 5:21 PM
This revision was automatically updated to reflect the committed changes.