projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2892fcc
)
[NFC] Whitespace fix
author
Max Kazantsev
<mkazantsev@azul.com>
Mon, 1 Mar 2021 05:14:03 +0000
(12:14 +0700)
committer
Max Kazantsev
<mkazantsev@azul.com>
Mon, 1 Mar 2021 05:14:03 +0000
(12:14 +0700)
llvm/lib/CodeGen/CodeGenPrepare.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/CodeGenPrepare.cpp
b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index
b62c332
..
b935e23
100644
(file)
--- 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;