This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Fix translation of splat constants to LLVM IR
ClosedPublic

Authored by ftynse on Jan 14 2020, 2:31 AM.

Details

Summary

When converting splat constants for nested sequential LLVM IR types wrapped in
MLIR, the constant conversion was erroneously assuming it was always possible
to recursively construct a constant of a sequential type given only one value.
Instead, wait until all sequential types are unpacked recursively before
constructing a scalar constant and wrapping it into the surrounding sequential
type.

Diff Detail

Event Timeline

ftynse created this revision.Jan 14 2020, 2:31 AM

Unit tests: pass. 61804 tests passed, 0 failed and 781 were skipped.

clang-tidy: unknown.

clang-format: pass.

Build artifacts: diff.json, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

nicolasvasilache accepted this revision.Jan 14 2020, 3:30 AM

Thanks for fixing!

This revision is now accepted and ready to land.Jan 14 2020, 3:30 AM
This revision was automatically updated to reflect the committed changes.