Commit 71a34895 by Sean Committed by Tianqi Chen

correct mistake in muladd function logic (#2269)

Doesn't make sense to have %1 = mul(%x, %y) computed but never use the result %1
parent bc1d9b62
...@@ -54,7 +54,7 @@ shows an example of a function calling another function. ...@@ -54,7 +54,7 @@ shows an example of a function calling another function.
def @muladd(%x, %y, %z) { def @muladd(%x, %y, %z) {
%1 = mul(%x, %y) %1 = mul(%x, %y)
%2 = add(%x, %z) %2 = add(%1, %z)
%2 %2
} }
def @myfunc(%x) { def @myfunc(%x) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment