[BYOC][MergeComposite] if root->args[i] isn't a CallNode, then Donwcast<Call> will...
authorwindclarion <windclarion@gmail.com>
Wed, 20 May 2020 01:10:50 +0000 (09:10 +0800)
committerGitHub <noreply@github.com>
Wed, 20 May 2020 01:10:50 +0000 (10:10 +0900)
commit6cbda80227fc18a859c4b01f57f75abbd7a16181
treee122990e2a6c2a055b37a5918079df91efeadbfe
parent0d1a9544e2b024fd2763e4de571a5fb527656241
[BYOC][MergeComposite] if root->args[i] isn't a CallNode, then Donwcast<Call> will check fail (#5623)

we needn't execute L131 "call_map->Set(arg, new_arg)", because when arg
is CallNode and root->args[i] is not CallNode, new_arg will be a null
pointer. There is no point in caching null pointer.

Signed-off-by: windclarion <windclarion@gmail.com>
src/relay/transforms/merge_composite.cc