This is an archive of the discontinued LLVM Phabricator instance.

[test] Remove readonly from some parameters that are written through in tests.
ClosedPublic

Authored by pcwalton on Oct 27 2022, 1:08 PM.

Details

Summary

In D136659 I found a few tests that write through readonly parameters:

  • Analysis/BasicAA/pr18573.ll: @foo1 writes through %arr.ptr, but declares it

readonly. I removed the readonly annotation.

  • CodeGen/ARM/ParallelDSP/aliasing.ll: @restrict writes through the readonly

%arg3, @store_alias_arg3_illegal_1 writes through the readonly %arg3, and
@store_alias_arg3_illegal_2 writes through the readonly %arg3. I removed
readonly from all three. Also, I added some CHECK-LABEL directives to make it
harder for FileCheck output to be mixed up.

  • Transforms/LoopVectorize/AArch64/sve-gather-scatter.ll:

@gather_nxv4i32_ind64_stride2 writes through the readonly %a. I removed the
readonly attribute.

  • Transforms/LoopVectorize/interleaved-accesses.ll: @load_gap_reverse writes

through the readonly %P1 and %P2. Also, the corresponding C code in the comment
didn't match the test. I removed the readonly attribute from both parameters
and corrected the C code.

Diff Detail

Event Timeline

pcwalton created this revision.Oct 27 2022, 1:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2022, 1:08 PM
pcwalton requested review of this revision.Oct 27 2022, 1:08 PM
nikic accepted this revision.Oct 27 2022, 1:22 PM

LGTM

This revision is now accepted and ready to land.Oct 27 2022, 1:22 PM
This revision was landed with ongoing or failed builds.Oct 29 2022, 3:07 PM
This revision was automatically updated to reflect the committed changes.