This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] added a hidden option to control NVPTXLowerUnreachable pass.
ClosedPublic

Authored by tra on Jun 29 2023, 9:34 AM.

Details

Summary

We've ran into an issue where the pass breaks a handful of our internal tests
and need a way to temporarily disable the pass while we're investigating.

Diff Detail

Event Timeline

tra created this revision.Jun 29 2023, 9:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 9:34 AM
tra published this revision for review.Jun 29 2023, 9:36 AM
tra added reviewers: maleadt, eaeltsin.
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 9:36 AM
alexfh added a subscriber: alexfh.Jun 29 2023, 11:31 PM

Looks good as a temporary measure.

llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
66

Could you add a FIXME to get rid of this eventually?

413

nit: Looks like a tab character. clang-format, please

alexfh accepted this revision.Jun 29 2023, 11:32 PM
This revision is now accepted and ready to land.Jun 29 2023, 11:32 PM
alexfh added inline comments.Jun 29 2023, 11:35 PM
llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
413
maleadt accepted this revision.Jun 29 2023, 11:43 PM
tra updated this revision to Diff 536270.Jun 30 2023, 8:33 AM
tra marked an inline comment as done.

Addressed comments. Reformatted the changes.

tra added inline comments.Jun 30 2023, 8:35 AM
llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
413

This is odd. It's all-spaces in my source file. Here's hexdump of that part of the diff:

00000590  6c 65 50 61 73 73 28 29  29 3b 0a 2b 20 20 69 66  |lePass());.+  if|
000005a0  20 28 45 78 69 74 4f 6e  55 6e 72 65 61 63 68 61  | (ExitOnUnreacha|
000005b0  62 6c 65 29 0a 2b 20 20  20 20 61 64 64 50 61 73  |ble).+    addPas|
000005c0  73 28 63 72 65 61 74 65  4e 56 50 54 58 4c 6f 77  |s(createNVPTXLow|
000005d0  65 72 55 6e 72 65 61 63  68 61 62 6c 65 50 61 73  |erUnreachablePas|
tra updated this revision to Diff 536275.Jun 30 2023, 8:39 AM

clang-formatted whole file.

This revision was landed with ongoing or failed builds.Jun 30 2023, 8:59 AM
This revision was automatically updated to reflect the committed changes.