HomePhabricator

[GlobalISel] Fix a bug in LegalizeRuleSet::clampMaxNumElements

Description

[GlobalISel] Fix a bug in LegalizeRuleSet::clampMaxNumElements

Summary:
This function was causing a crash when MaxElements == 1 because
it was trying to create a single element vector type.

Reviewers: dsanders, aemerson, aditya_nandakumar

Reviewed By: dsanders

Subscribers: rovka, kristof.beyls, javed.absar, llvm-commits

Differential Revision: https://reviews.llvm.org/D53734

Details

Committed
volkanNov 1 2018, 12:01 PM
Reviewer
dsanders
Differential Revision
D53734: [GlobalISel] Fix a bug in LegalizeRuleSet::clampMaxNumElements
Parents
rL345874: Output "rule" information in SARIF exports.
Branches
Unknown
Tags
Unknown