This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Shape] Fix a crash when folding nary broadcast ops
ClosedPublic

Authored by bkramer on Feb 22 2021, 9:47 AM.

Details

Summary

operands[2] can be nullptr here. I'm not able to build a lit test for
this because of the commutative reordering of operands. It's possible to
trigger this with a createOrFold<BroadcastOp> though.

Diff Detail

Event Timeline

bkramer created this revision.Feb 22 2021, 9:47 AM
bkramer requested review of this revision.Feb 22 2021, 9:47 AM
tpopp accepted this revision.Feb 22 2021, 10:53 AM

Whoops. That's definitely a better choice than what I did.

This revision is now accepted and ready to land.Feb 22 2021, 10:53 AM
This revision was automatically updated to reflect the committed changes.