This is an archive of the discontinued LLVM Phabricator instance.

[9/15][Clang][RISCV][NFC] Use correct type for `RVVTypeCache::computeTypes` under RISCVVEmitter.cpp
ClosedPublic

Authored by eopXD on Jan 14 2023, 7:21 AM.

Details

Summary

MaskedPrototype is initialized and used nowhere, this is a bug. The
existing codebase works correctly upon this bug because the default
policy for unmasked intrinsics is set to TAMU.

This is something to be fixed because when the default policy is
changed to TAMA, clang will generate incorrect result.

This is the 9th commit of a patch-set that aims to change the default policy
for RVV intrinsics from TAMU to TAMA.

Please refer to the cover letter in the 1st commit (D141573) for an
overview.

Diff Detail

Event Timeline

eopXD created this revision.Jan 14 2023, 7:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 14 2023, 7:21 AM
eopXD requested review of this revision.Jan 14 2023, 7:21 AM
eopXD edited the summary of this revision. (Show Details)Jan 14 2023, 7:22 AM
eopXD edited the summary of this revision. (Show Details)
eopXD updated this revision to Diff 489255.Jan 14 2023, 7:48 AM

Bump CI upon update of preceeding patch.

eopXD updated this revision to Diff 489296.Jan 14 2023, 11:16 AM

Rebase upon latest main.

eopXD updated this revision to Diff 489304.Jan 14 2023, 11:26 AM

Dump CI.

eopXD retitled this revision from [WIP][9/N][Clang][RISCV][NFC] Use correct type for `RVVTypeCache::computeTypes` under RISCVVEmitter.cpp to [9/15][Clang][RISCV][NFC] Use correct type for `RVVTypeCache::computeTypes` under RISCVVEmitter.cpp.Jan 15 2023, 7:50 AM
eopXD edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Jan 16 2023, 11:31 PM

Description repeats a slightly different version of the same statement.

The
existing codebase works correctly upon this bug because the default
policy for unmasked intrinsics is set to TAMU.

The existing code works because the default policy for unmasked
intrinsics is set to TAMU.
eopXD edited the summary of this revision. (Show Details)Jan 24 2023, 7:00 AM
This revision was landed with ongoing or failed builds.Jan 24 2023, 7:03 AM
This revision was automatically updated to reflect the committed changes.