[llvm] 8404b29 - [llvm][NFC] Fix bracing from #138414 (#138620)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 5 18:22:00 PDT 2025


Author: Paul Kirth
Date: 2025-05-05T18:21:57-07:00
New Revision: 8404b29b4151d95135ccc8d0d985be5ec8bb6f49

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

LOG: [llvm][NFC] Fix bracing from #138414 (#138620)

I had forgotten to upload the formatting change.

Added: 
    

Modified: 
    llvm/lib/Transforms/Utils/Local.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index ce03bc066c6e2..1db01b2716a09 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -4225,9 +4225,8 @@ bool llvm::canReplaceOperandWithVariable(const Instruction *I, unsigned OpIdx) {
     return false;
 
   // Early exit.
-  if (!isa<Constant, InlineAsm>(I->getOperand(OpIdx))) {
+  if (!isa<Constant, InlineAsm>(I->getOperand(OpIdx)))
     return true;
-  }
 
   switch (I->getOpcode()) {
   default:


        


More information about the llvm-commits mailing list