[llvm] d9c50cc - [NFC][NVPTX] Move a comment back to its proper place

Luke Drummond via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 5 05:05:33 PST 2023


Author: Luke Drummond
Date: 2023-01-05T13:01:28Z
New Revision: d9c50cc9849630804717b4ae5f7197f45028dc51

URL: https://github.com/llvm/llvm-project/commit/d9c50cc9849630804717b4ae5f7197f45028dc51
DIFF: https://github.com/llvm/llvm-project/commit/d9c50cc9849630804717b4ae5f7197f45028dc51.diff

LOG: [NFC][NVPTX] Move a comment back to its proper place

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.

Added: 
    

Modified: 
    llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp b/llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
index 3c379bb9433d..36814d9f5742 100644
--- a/llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
@@ -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);


        


More information about the llvm-commits mailing list