d0242346b8
This will allow expressions like `-x == -x` or `!y == !y` to be detected as matching expressions (which enables various constant-folding paths). (Also, migrated the analysis code into a separate cpp.) Change-Id: I3e317fdaed3762f8fa19e684a5ed557fc9348c7c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/527617 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
30 lines
867 B
GLSL
30 lines
867 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform vec4 colorRed;
|
|
uniform vec4 colorGreen;
|
|
vec4 main() {
|
|
bool _0_a = true;
|
|
bool _1_b = false;
|
|
bool _2_c = true;
|
|
bool _3_d = false;
|
|
bool _4_e = true;
|
|
bool _5_f = false;
|
|
bool _6_g = true;
|
|
bool _7_h = false;
|
|
bool _8_i = true;
|
|
bool _9_j = false;
|
|
bool _12_k = true;
|
|
bool _13_l = false;
|
|
bool _14_m = true;
|
|
bool _15_n = false;
|
|
bool _16_o = true;
|
|
bool _17_p = false;
|
|
bool _18_q = true;
|
|
bool _19_r = false;
|
|
bool _20_s = true;
|
|
bool _21_t = false;
|
|
bool _22_u = true;
|
|
bool _23_v = false;
|
|
return ((((((((((((((((((((_0_a && !_1_b) && _2_c) && !_3_d) && _4_e) && !_5_f) && _6_g) && !_7_h) && _8_i) && !_9_j) && _12_k) && !_13_l) && _14_m) && !_15_n) && _16_o) && !_17_p) && _18_q) && !_19_r) && _20_s) && !_21_t) && _22_u) && !_23_v ? colorGreen : colorRed;
|
|
}
|