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:
26347ad
)
[CombinerHelper] Avoid deprecated method (NFC)
author
Nikita Popov
<npopov@redhat.com>
Thu, 1 Sep 2022 14:09:05 +0000
(16:09 +0200)
committer
Nikita Popov
<npopov@redhat.com>
Thu, 1 Sep 2022 14:09:05 +0000
(16:09 +0200)
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
index
84a6fea
..
32cb96e
100644
(file)
--- a/
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
+++ b/
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
@@
-4986,7
+4986,7
@@
MachineInstr *CombinerHelper::buildSDivUsingMul(MachineInstr &MI) {
SmallVector<Register, 16> Shifts, Factors;
auto *RHSDef = cast<GenericMachineInstr>(getDefIgnoringCopies(RHS, MRI));
- bool IsSplat = getIConstantSplatVal(*RHSDef, MRI).has
V
alue();
+ bool IsSplat = getIConstantSplatVal(*RHSDef, MRI).has
_v
alue();
auto BuildSDIVPattern = [&](const Constant *C) {
// Don't recompute inverses for each splat element.