mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-04 02:40:42 +00:00
Add a micro optimization to catch cases where the PtrA equals PtrB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
24ff48476b
commit
e65b219edb
@ -980,7 +980,7 @@ bool BoUpSLP::isConsecutiveAccess(Value *A, Value *B) {
|
||||
return false;
|
||||
|
||||
// Check that A and B are of the same type.
|
||||
if (PtrA->getType() != PtrB->getType())
|
||||
if (PtrA == PtrB || PtrA->getType() != PtrB->getType())
|
||||
return false;
|
||||
|
||||
// Calculate a constant offset from the base pointer without using SCEV
|
||||
|
Loading…
Reference in New Issue
Block a user