This is an archive of the discontinued LLVM Phabricator instance.

[mlir] [VectorOps] Replace zero-scalar + splat into direct zero vector constant
ClosedPublic

Authored by aartbik on May 11 2020, 6:29 PM.

Details

Summary

The scalar zero + splat yields more intermediate code than the direct
dense zero constant, and ultimately is lowered to exactly the same
LLVM IR operations, so no point wasting the intermediate code.

Diff Detail

Event Timeline

aartbik created this revision.May 11 2020, 6:29 PM
nicolasvasilache accepted this revision.May 11 2020, 6:57 PM
This revision is now accepted and ready to land.May 11 2020, 6:57 PM
This revision was automatically updated to reflect the committed changes.

There were no test cases changed by this?

There were no test cases changed by this?

No. I was a bit surprised too I did not even have to change even one, but all tests looked at a later lowered stage, which is identical.

Herald added a project: Restricted Project. · View Herald TranscriptJun 5 2020, 11:13 AM
Herald added a subscriber: msifontes. · View Herald Transcript