Fix test that fails on non-determinism in LowerVectorTransfers
authorNicolas Vasilache <ntv@google.com>
Wed, 3 Apr 2019 07:46:40 +0000 (00:46 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 3 Apr 2019 08:09:13 +0000 (01:09 -0700)
commitf1b12f5a64eeb5ea9de8060e46b77c18806c49bf
tree804109a1a522c2e928d0c980db9516bff3233074
parentc2e9ab8ef1809f148f29d855e1175fe920246fd2
Fix test that fails on non-determinism in LowerVectorTransfers

    This CL fixes the non-determinism across compilers in an edsc::select expression used in LowerVectorTransfers. This is achieved by factoring the expression out of the function call to ensure a deterministic order of evaluation.
    Since the expression is now factored out, fewer IR is generated and the test is updated accordingly.

--

PiperOrigin-RevId: 241679962
mlir/lib/Transforms/LowerVectorTransfers.cpp
mlir/test/Transforms/Vectorize/lower_vector_transfers.mlir