This is supposed to be the high bit index, not the width. Use the
wrapping form of getBitsSet and avoid the bitflip.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D73147
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
Diff Detail Event TimelineHerald added subscribers: llvm-commits, kerbowa, Petar.Avramovic and 6 others. · View Herald Transcript This revision is now accepted and ready to land.Jan 28 2020, 1:09 PM
Revision Contents
Diff 239451 llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-insert.mir
|