This patch fixes a crash when a sclaed and unscaled zero stores are merged.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
llvm/test/CodeGen/AArch64/str-narrow-zero-merge.ll | ||
---|---|---|
11 | I think the patch needs more work. This offset is clearly not right (it's in the caller's frame). |
Comment Actions
- Change the way offsets are calculated to handle mixing of scaled and unscaled stores.
- Change the test to use .mir instead of .ll
Comment Actions
- Assign OffsetImm to the appropriate value without doing recalculations.
- Remove unecessary checks.
Comment Actions
LGTM, thanks! Would be good to wait with committing a day or so in case there are additional comments.
nit: This doesn't calculate the final offset, only selects the offset