This is an archive of the discontinued LLVM Phabricator instance.

[LV] Add regression test for r297610
ClosedPublic

Authored by gilr on Mar 15 2017, 2:48 AM.

Details

Summary

The new test asserts that scalarized memory operations get memcheck metadata added even if the loop is only unrolled.

Diff Detail

Repository
rL LLVM

Event Timeline

gilr created this revision.Mar 15 2017, 2:48 AM
hfinkel accepted this revision.Mar 15 2017, 7:35 AM

LGTM

test/Transforms/LoopVectorize/unroll-novec-memcheck-metadata.ll
10 ↗(On Diff #91844)

Not required currently, but this would be a good place to use FileCheck's new local/global variable feature (r297396). You'd do this by using:

FileCheck --enable-var-scope %s

and then using $MD1 as the regex name, instead of just MD1, because it is intended to be a global variable (one that lives across CHECK-LABEL regions).

This revision is now accepted and ready to land.Mar 15 2017, 7:35 AM
This revision was automatically updated to reflect the committed changes.