commit | 24d4fbe226c1f5b9a216d05c25737b4b14391975 | [log] [tgz] |
---|---|---|
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | Fri Mar 31 13:04:34 2017 +0200 |
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | Wed Apr 05 15:29:43 2017 +0200 |
tree | 248d40d5f708aab2d88bd95cff03a1ddc94c3fdf | |
parent | 5c4602f4a259dae639457554f377bc35f800083f [diff] |
radeonsi: strengthen emit_optimization_barrier LLVM will lift inline assembly out of if-else-blocks if both paths have the same inline assembly. Prevent this by adding an irrelevant unique text to the assembly. This requires the LLVM assembly parser to be initialized. Furthermore, allow forcing subsequent computations to happen after the optimization barrier by defining a data dependency. Reviewed-by: Marek Olšák <marek.olsak@amd.com>