summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorYigit Boyar <yboyar@google.com>2015-04-05 02:09:10 -0700
committerYigit Boyar <yboyar@google.com>2015-04-06 14:16:54 -0700
commit266aa36b426eabb4a74f2ced9b45ebe55687d2c4 (patch)
treea7e261aaea610405ffd664d7c26127404ed8b596 /rs/java/android/renderscript/RenderScript.java
parent3695b1aae95b289302cbbf9c38f0bd595bfc6ccb (diff)
Fix ternary handling and generate better code
This CL fixes an issue about ternary expressions where a ternary expression would be evaluated with its last evaluated dependency. This would create a problem where ternary expressions would not be evaluated if other branch of the conditional is chosen, This bug is fixed by checking outher flags such that we'll still calculate it together if all dependencies are behind the same flag vs we'll calculate it independently if its dependency flags are different. This CL also improves the generated code in two ways: - When there is an if inside if, we don't add flag check (the if) if all of its conditions are covered in the parent if. - I replaced flag names with binary values. This looks more readable then generated names. Bug: 20073197 Change-Id: I9d07868206a5393d6509ab0a205b30a796e11107
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions