[TIR][BugFix] Do not bind non-index type value of lets in CompactBufferAllocation#11828
Conversation
|
Hey thanks for the contribution! I don't think I fully comprehend this change (and the unittest) so would love to hear more about your insights :-) With this change, whether or not to add a |
Emmmmm,my understand is that since the pass is only interested in buffer indices,record index typed vars could be safe. While arith utilities are written to handle integers,binding things like SinglePoint(int32x8) would just fail on sanity checks of dom analysis (eg, EvalNDSet). |
|
Agree that we shouldn’t bind vectorized data types. Besides that, is that anything else we shouldn’t bind? If not, we can instead only check lanes field |
|
Perhaps we can add an assertion in the Bind method where we always assume the value shouldn’t be vectorized |
And kVoid and kHandle should not bind.
|
Thanks for the notes~ I'd like to add one ICHECK line to see if there are broken cases. For vectors, however, I'm not sure it should never be considered to get analyzed/simplified. For |
|
@wrongtest Thank you for your detailed explanation! That makes a lot of sense to me :-) |
|
Looks like some situations happened in the CI... |
|
@wrongtest would you mind retriggering the CI? looks like it's down |
1159b9f to
5ea7b52
Compare
5ea7b52 to
971db0e
Compare
|
Retriggering as CI is back to life |
Fix a bug for let support, it should not put non-index typed values into
dom_map.