a60ac0c45c
We need to rescan after optimizing away expressions that might exist in the CFG/definition map, since we are rebuilding them from scratch and not just stripping off excess parts from them. Change-Id: I843a2ea3fc38428e7c0bd0e2bf7a7d41101345e3 Bug: oss-fuzz:28794 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/344972 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
17 lines
451 B
Metal
17 lines
451 B
Metal
#include <metal_stdlib>
|
|
#include <simd/simd.h>
|
|
using namespace metal;
|
|
struct Inputs {
|
|
};
|
|
struct Outputs {
|
|
float4 sk_FragColor [[color(0)]];
|
|
};
|
|
fragment Outputs fragmentMain(Inputs _in [[stage_in]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
|
|
Outputs _outputStruct;
|
|
thread Outputs* _out = &_outputStruct;
|
|
int i = int(sqrt(1.0));
|
|
float(i) * float(i = 3);
|
|
_out->sk_FragColor.x = 3.0;
|
|
return *_out;
|
|
}
|