Commit 31916f49 by David 'Digit' Turner Committed by Nicolas Capens

[Subzero] Remove assert that breaks Shuffle operations.

The assert() can be safely removed. This was tested by doing the following on my Linux machine. 1) remove the assert() in third_party/swiftshader/third_party/subzero/src/IceTargetLoweringX86BaseImpl.h:6491 2) change the 11 into 1 in src/Reactor/ReactorUnitTests.cpp:492 (to ensure full coverage of the Blend operation) 3) cd build && cmake .. -DCMAKE_BUILD_TYPE=Debug -DREACTOR_BACKEND=Subzero && make -j32 && ./ReactorUnitTests Without step 1), ReactorUnitTests crasehs with an assertion in debug builds only. Bug: None Change-Id: I3ab3600eee0bb7a9c9a1bfc3fe091e24c4dfc366 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/39053 Kokoro-Presubmit: David Turner <digit@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com> Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 18c6a784
......@@ -6487,8 +6487,6 @@ void TargetX86Base<TraitsType>::lowerShuffleVector(
}
break;
CASE_SRCS_IN(0, 0, 0, 1) : {
assert(false && "Following code is untested but likely correct; test "
"and remove assert.");
auto *Unified = lowerShuffleVector_UnifyFromDifferentSrcs(Src0, Index2,
Src1, Index3);
T = lowerShuffleVector_TwoFromSameSrc(Src0, Index0, Index1, Unified,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment