fix(vmi): 256-lane vgather iota signless + opt-in bitcast layout_hint - #1487
Open
liuzidi wants to merge 3 commits into
Open
fix(vmi): 256-lane vgather iota signless + opt-in bitcast layout_hint#1487liuzidi wants to merge 3 commits into
liuzidi wants to merge 3 commits into
Conversation
1. createScalarOffsetConstant / createIotaChunkBase: unsigned scalar
constants and offset adds must round-trip through signless integer
types of the same width (bit-identical); the 256-lane iota chunk
split previously emitted arith.constant :ui16 / ui16 arith.addi,
failing vmi-to-vpto with 'integer return type must be signless'
for every 256-lane vgather on a ui16 index ramp.
2. Opt-in layout soft preference: a layout_hint attribute on
vinterpret_cast (forwarded to the lowered bitcast) appends its
layout pair as an extra candidate relation in
VMIBitcastTransfer::query. Soft semantics only — the solver may
reject the candidate when other constraints conflict, so the
global layout heuristics are untouched (lit suite verified
identical before/after). Includes the opt-in {bits<32>, N<128>,
d(4), c()} ensure_layout row consumed by hinted conversions.
Refs hw-native-sys#1486
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1486(完整背景、最小复现与实测数据见 issue)。
内容
验证