Fix decorations of inlined functions.
authorDaniel Schürmann <daniel.schuermann@campus.tu-berlin.de>
Tue, 24 Oct 2017 16:28:18 +0000 (18:28 +0200)
committerSteven Perron <stevenperron@google.com>
Mon, 13 Nov 2017 17:49:25 +0000 (12:49 -0500)
commita76d0977ac88ecd1e07884aea03eeee9f2b7db1b
tree7f1ac920aeb6e2c0acc6c62d8425cd35edbe671c
parent76555bd4bae0f751ca01a219de5b5fdb7e68f460
Fix decorations of inlined functions.

Fixes issue #728.  Currently the inliner is not generating decorations for
inlined code which corresponds to function code which has decorations. An
example of decorations that are relevant: RelaxedPrecision, NoContraction.

The solution is to replicate the decoration during inlining.
source/opt/decoration_manager.cpp
source/opt/decoration_manager.h
source/opt/inline_pass.cpp
source/opt/inline_pass.h
source/opt/instruction.h
test/opt/inline_test.cpp