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

via llvm-commits llvm-commits at lists.llvm.org
Mon May 5 18:21:03 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-transforms

Author: Paul Kirth (ilovepi)

<details>
<summary>Changes</summary>

I had forgotten to upload the formatting change.

---
Full diff: https://github.com/llvm/llvm-project/pull/138620.diff


1 Files Affected:

- (modified) llvm/lib/Transforms/Utils/Local.cpp (+1-2) 


``````````diff
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:

``````````

</details>


https://github.com/llvm/llvm-project/pull/138620


More information about the llvm-commits mailing list