This is an archive of the discontinued LLVM Phabricator instance.

[X86] Remove X86LowerAMXType::getRowFromCol from X86LowerAMXType.cpp
AbandonedPublic

Authored by vabridgers on Aug 28 2021, 3:12 AM.

Details

Reviewers
None
Summary

Remove method X86LowerAMXType::getRowFromCol since it's not used, and
it's causing a warning.

[AMDGPU] Fix gcc 9.3.0 warning from -Wtype-limits

Fixes this warning when using gcc 9.3.0

lib/Target/AMDGPU/R600GenSubtargetInfo.inc:282:62: warning: comparison
of unsigned expression < 0 is always false [-Wtype-limits]
if (Bits[R600::FeatureLocalMemorySize0] && LocalMemorySize <0)

LocalMemorySize = 0;

[CMake] Disable -Wmisleading-indentation when using gcc

gcc doesn't handle -Wmisleading-indentation correctly, leading to
warnings when using gcc. See
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81334 for details. This
change disables -Wmisleading-indentation to avoid warnings when using
gcc, and leaves it enabled for other compilers. This can be re-enabled
when gcc behaves as expected.

[AMDGPU] Use gcc pragmas to disable -Wtype-limits warning

Use gcc pragmas to disable warning in generated filed. This is producing
a warning when using using gcc 9.3.0.

lib/Target/AMDGPU/R600GenSubtargetInfo.inc:282:62: warning: comparison
of unsigned expression < 0 is always false [-Wtype-limits]

if (Bits[R600::FeatureLocalMemorySize0] && LocalMemorySize <0)
   LocalMemorySize = 0;

Diff Detail

Event Timeline

vabridgers created this revision.Aug 28 2021, 3:12 AM
vabridgers requested review of this revision.Aug 28 2021, 3:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2021, 3:12 AM

Argggg. Didn't meant to submit all 4 of these very minor changes in a single review. I'll abandon and resubmit as separate reviews.

vabridgers abandoned this revision.Aug 28 2021, 3:17 AM