Skip to content
Commit 95b4d47e authored by Steven Perron's avatar Steven Perron Committed by Lei Zhang
Browse files

Fix infinite loop while folding OpVectorShuffle (#1722)

When folding an OpVectorShuffle where the first operand is defined by
an OpVectorShuffle, is unused, and is equal to the second, we end up
with an infinite loop.  This is because we think we change the
instruction, but it does not actually change.  So we keep trying to
folding the same instruction.

This commit fixes up that specific issue.  When the operand is unused,
we replace it with Null.
parent 63c1d8fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment