aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorMax Kazantsev <mkazantsev@azul.com>2021-03-01 12:14:03 +0700
committerMax Kazantsev <mkazantsev@azul.com>2021-03-01 12:14:03 +0700
commitfdbad5e5acf44e870e607209fc464ee5689646d1 (patch)
tree0cb94244b29c33c6b8f78d0564405084c5c63cde /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent2892fcc204f30ff16d9adb382a67d7125598813d (diff)
downloadllvm-fdbad5e5acf44e870e607209fc464ee5689646d1.zip
llvm-fdbad5e5acf44e870e607209fc464ee5689646d1.tar.gz
llvm-fdbad5e5acf44e870e607209fc464ee5689646d1.tar.bz2
[NFC] Whitespace fix
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
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<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;