This is an archive of the discontinued LLVM Phabricator instance.

[MergeFuncs] Don't merge shufflevectors with different masks
ClosedPublic

Authored by nikic on May 1 2020, 1:32 PM.

Details

Summary

When the shufflevector mask operand was converted into special instruction data, the FunctionComparator was not updated to account for this. As such, MergeFuncs will happily merge shufflevectors with different masks.

This fixes https://bugs.llvm.org/show_bug.cgi?id=45773.

Diff Detail

Event Timeline

nikic created this revision.May 1 2020, 1:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 1 2020, 1:32 PM
efriedma accepted this revision.May 1 2020, 3:43 PM

LGTM

I thought I caught all the places that needed new code to compare masks, but I missed this; thanks.

This revision is now accepted and ready to land.May 1 2020, 3:43 PM
This revision was automatically updated to reflect the committed changes.