forked from OSchip/llvm-project
[selectiondag] Check PromotedFloats map during expansive checks.
Summary: `PromotedFloats` needs to be checked in `DAGTypeLegalizer::PerformExpensiveChecks`. This patch fixes a few type legalization failures with expansive checks for ARM fp16 tests. Reviewers: baldrick, bogner, arsenm Subscribers: arsenm, aemerson, llvm-commits Differential Revision: https://reviews.llvm.org/D28187 llvm-svn: 290796
This commit is contained in:
parent
74af88e63d
commit
f872d230ad
|
@ -117,6 +117,8 @@ void DAGTypeLegalizer::PerformExpensiveChecks() {
|
|||
Mapped |= 64;
|
||||
if (WidenedVectors.find(Res) != WidenedVectors.end())
|
||||
Mapped |= 128;
|
||||
if (PromotedFloats.find(Res) != PromotedFloats.end())
|
||||
Mapped |= 256;
|
||||
|
||||
if (Node.getNodeId() != Processed) {
|
||||
// Since we allow ReplacedValues to map deleted nodes, it may map nodes
|
||||
|
@ -159,6 +161,8 @@ void DAGTypeLegalizer::PerformExpensiveChecks() {
|
|||
dbgs() << " SplitVectors";
|
||||
if (Mapped & 128)
|
||||
dbgs() << " WidenedVectors";
|
||||
if (Mapped & 256)
|
||||
dbgs() << " PromotedFloats";
|
||||
dbgs() << "\n";
|
||||
llvm_unreachable(nullptr);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue