Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,16 @@ public Node canonical(CanonicalizerTool tool, ValueNode forX, ValueNode forY, Va
}
return SimdBlendWithLogicMaskNode.create(forY, forX, newSelector);
}
SimdStamp falseValuesStamp = (SimdStamp) forX.stamp(NodeView.from(tool));
SimdStamp trueValuesStamp = (SimdStamp) forY.stamp(NodeView.from(tool));
if (falseValuesStamp.isAllZeros() && trueValuesStamp.isAllOnes()) {
/*
* This is the vector equivalent of (condition ? true : false), we don't need to blend.
* The input mask is all we need.
*/
return forZ;
if (!SimdStamp.isOpmask(fromStamp)) {
SimdStamp falseValuesStamp = (SimdStamp) forX.stamp(NodeView.from(tool));
SimdStamp trueValuesStamp = (SimdStamp) forY.stamp(NodeView.from(tool));
if (falseValuesStamp.isAllZeros() && trueValuesStamp.isAllOnes()) {
/*
* This is the vector equivalent of (condition ? true : false), we don't need to
* blend. The input mask is all we need.
*/
return forZ;
}
}

return this;
Expand Down