From fdbad5e5acf44e870e607209fc464ee5689646d1 Mon Sep 17 00:00:00 2001 From: Max Kazantsev Date: Mon, 1 Mar 2021 12:14:03 +0700 Subject: [PATCH] [NFC] Whitespace fix --- llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index b62c332..b935e23 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(ScaleReg) && // not a constant expr. + if (isa(ScaleReg) && // not a constant expr. match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI))) && CI->getValue().isSignedIntN(64)) { TestAddrMode.InBounds = false; -- 2.7.4