Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spirv-fuzz: adds TransformationReplaceCopyObjectWithStoreLoad #3567

Merged
Prev Previous commit
Next Next commit
Minor fixes.
  • Loading branch information
Antoni Karpiński committed Jul 22, 2020
commit 4b0280eb12ddcae8d44bba8c50f46f79a04ce794
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

namespace spvtools {
namespace fuzz {
antonikarp marked this conversation as resolved.
Show resolved Hide resolved

// Replaces instructions OpCopyObject with storing into a new variable
// and immediately loading this variable to |result_id| of the
// original OpCopyObject instruction.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ bool TransformationReplaceCopyObjectWithStoreLoad::IsApplicable(
return false;
}
// |message_.variable_storage_class| must be Private or Function.
return (message_.variable_storage_class() == SpvStorageClassPrivate ||
message_.variable_storage_class() == SpvStorageClassFunction);
return message_.variable_storage_class() == SpvStorageClassPrivate ||
message_.variable_storage_class() == SpvStorageClassFunction;
}

void TransformationReplaceCopyObjectWithStoreLoad::Apply(
Expand Down