This is an archive of the discontinued LLVM Phabricator instance.

[SPIR-V] Disable MachineLateInstrsCleanup pass
ClosedPublic

Authored by mpaszkowski on Dec 15 2022, 6:33 AM.

Details

Summary

This change:

  • Disables MachineLateInstrsCleanup pass since it does not work with virtual registers
  • Makes all LIT tests run with -O0

Diff Detail

Event Timeline

mpaszkowski created this revision.Dec 15 2022, 6:33 AM
mpaszkowski requested review of this revision.Dec 15 2022, 6:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2022, 6:33 AM
jonpa added a comment.Dec 15 2022, 8:19 AM

Sorry - I disabled this already for NVPTX and WebAssembly for the same reason but must have missed that SPIRV does not do regalloc when no SPIRV tests at all changed.

Sorry - I disabled this already for NVPTX and WebAssembly for the same reason but must have missed that SPIRV does not do regalloc when no SPIRV tests at all changed.

No problem! SPIR-V tests did not run since the backend is experimental and not built in default CMake configuration.

llvm/lib/Target/SPIRV/SPIRVTargetMachine.cpp
129

Please remove the extra whitespace in the empty line.

iliya-diyachkov accepted this revision.Dec 15 2022, 12:43 PM

In other respects, it looks good to me.

This revision is now accepted and ready to land.Dec 15 2022, 12:43 PM
mpaszkowski marked an inline comment as done.
This revision was automatically updated to reflect the committed changes.