[llvm] fdbad5e - [NFC] Whitespace fix
Max Kazantsev via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 28 21:14:44 PST 2021
Author: Max Kazantsev
Date: 2021-03-01T12:14:03+07:00
New Revision: fdbad5e5acf44e870e607209fc464ee5689646d1
URL: https://github.com/llvm/llvm-project/commit/fdbad5e5acf44e870e607209fc464ee5689646d1
DIFF: https://github.com/llvm/llvm-project/commit/fdbad5e5acf44e870e607209fc464ee5689646d1.diff
LOG: [NFC] Whitespace fix
Added:
Modified:
llvm/lib/CodeGen/CodeGenPrepare.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index b62c3323538a..b935e238ea5c 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -3813,7 +3813,7 @@ bool AddressingModeMatcher::matchScaledValue(Value *ScaleReg, int64_t Scale,
// to see if ScaleReg is actually X+C. If so, we can turn this into adding
// X*Scale + C*Scale to addr mode.
ConstantInt *CI = nullptr; Value *AddLHS = nullptr;
- if (isa<Instruction>(ScaleReg) && // not a constant expr.
+ if (isa<Instruction>(ScaleReg) && // not a constant expr.
match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI))) &&
CI->getValue().isSignedIntN(64)) {
TestAddrMode.InBounds = false;
More information about the llvm-commits
mailing list