This is an archive of the discontinued LLVM Phabricator instance.

[SVE] Fix warnings in SelectInst::areInvalidOperands
ClosedPublic

Authored by david-arm on May 27 2020, 7:26 AM.

Details

Summary

We should be comparing the element counts rather than the
numbers of elements.

Diff Detail

Event Timeline

david-arm created this revision.May 27 2020, 7:26 AM
Herald added a project: Restricted Project. · View Herald Transcript
efriedma added inline comments.May 27 2020, 11:59 AM
llvm/lib/IR/Instructions.cpp
84

We probably want a testcase to make sure we don't accept select <2 x i1> zeroinitializer, <vscale x 2 x i64> zeroinitializer, <vscale x 2 x i64> zeroinitializer

david-arm updated this revision to Diff 266783.May 28 2020, 2:29 AM
david-arm marked an inline comment as done.
This revision is now accepted and ready to land.May 28 2020, 1:31 PM
This revision was automatically updated to reflect the committed changes.