This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Fix mask computation in lowerInsert
ClosedPublic

Authored by arsenm on Jan 21 2020, 4:06 PM.

Details

Summary

This is supposed to be the high bit index, not the width. Use the
wrapping form of getBitsSet and avoid the bitflip.

Diff Detail

Event Timeline

arsenm created this revision.Jan 21 2020, 4:06 PM
This revision is now accepted and ready to land.Jan 28 2020, 1:09 PM
nhaehnle removed a subscriber: nhaehnle.Jan 29 2020, 1:27 AM