Skip to content

Force all constants to be outlined and stored in the constant pool. - #5495

Merged
benvanik merged 2 commits into
mainfrom
benvanik-outline-all-the-things
Apr 16, 2021
Merged

benvanik merged 2 commits into
mainfrom
benvanik-outline-all-the-things

Conversation

@benvanik

Copy link
Copy Markdown
Collaborator

#5493 can return the inlining behavior once we have better ringbuffer
support and can measure the benefits.

#5493 can return the inlining behavior once we have better ringbuffer
support and can measure the benefits.
@benvanik benvanik added the compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm) label Apr 16, 2021
@benvanik
benvanik requested a review from ScottTodd April 16, 2021 20:40
@google-cla google-cla Bot added the cla: yes label Apr 16, 2021
@benvanik

Copy link
Copy Markdown
Collaborator Author

Exposed some bad assumptions in the check framework:

[ RUN      ] module.add
iree/modules/check/native_module.cc:281: Failure
Failed
Expected equality of these values. Contents does not match.
  lhs:
    i32=10
  rhs:
    i32=10
iree-check-module: iree/modules/check/native_module.cc:80:
bool iree::(anonymous namespace)::AlmostEqByteSpan(iree_byte_span_t, iree_byte_span_t) [T = float]:
Assertion `lhs_span.size() == rhs_span.size()' failed.

I think it's probably assuming the buffer bytes are equal to the range of populated valid bytes, which is not true.

Today is just determined not to be cool, isn't it :/

Previously they were assuming the entire underlying storage buffer was
equal to the valid byte length which caused problems now that we are
packing multiple buffers together.
@benvanik
benvanik merged commit eb35573 into main Apr 16, 2021
@benvanik
benvanik deleted the benvanik-outline-all-the-things branch April 16, 2021 22:16
@rsuderman rsuderman mentioned this pull request Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants