[NFC][NVPTX] Move a comment back to its proper place
authorLuke Drummond <luke.drummond@codeplay.com>
Thu, 5 Jan 2023 13:01:28 +0000 (13:01 +0000)
committerLuke Drummond <luke.drummond@codeplay.com>
Thu, 5 Jan 2023 13:01:28 +0000 (13:01 +0000)
The comment introduced in b94bd05b952a5 was misplaced during
f14af1621942 and no longer comments on the relevant bit of code; move it
back so it makes sense.

llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp

index 3c379bb9433df8d42c31103a5b8a16bbf013fced..36814d9f5742739be44477372c90f84ef88a0fd5 100644 (file)
@@ -82,9 +82,9 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeNVPTXTarget() {
   RegisterTargetMachine<NVPTXTargetMachine32> X(getTheNVPTXTarget32());
   RegisterTargetMachine<NVPTXTargetMachine64> Y(getTheNVPTXTarget64());
 
+  PassRegistry &PR = *PassRegistry::getPassRegistry();
   // FIXME: This pass is really intended to be invoked during IR optimization,
   // but it's very NVPTX-specific.
-  PassRegistry &PR = *PassRegistry::getPassRegistry();
   initializeNVVMReflectPass(PR);
   initializeNVVMIntrRangePass(PR);
   initializeGenericToNVVMPass(PR);