mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 08:56:04 +00:00
Test commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132558 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da174c1d3b
commit
68df608fd1
@ -31,7 +31,7 @@ using namespace llvm;
|
|||||||
static bool AreEquivalentAddressValues(const Value *A, const Value *B) {
|
static bool AreEquivalentAddressValues(const Value *A, const Value *B) {
|
||||||
// Test if the values are trivially equivalent.
|
// Test if the values are trivially equivalent.
|
||||||
if (A == B) return true;
|
if (A == B) return true;
|
||||||
|
|
||||||
// Test if the values come from identical arithmetic instructions.
|
// Test if the values come from identical arithmetic instructions.
|
||||||
// Use isIdenticalToWhenDefined instead of isIdenticalTo because
|
// Use isIdenticalToWhenDefined instead of isIdenticalTo because
|
||||||
// this function is only used when one address use dominates the
|
// this function is only used when one address use dominates the
|
||||||
@ -42,7 +42,7 @@ static bool AreEquivalentAddressValues(const Value *A, const Value *B) {
|
|||||||
if (const Instruction *BI = dyn_cast<Instruction>(B))
|
if (const Instruction *BI = dyn_cast<Instruction>(B))
|
||||||
if (cast<Instruction>(A)->isIdenticalToWhenDefined(BI))
|
if (cast<Instruction>(A)->isIdenticalToWhenDefined(BI))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Otherwise they may not be equivalent.
|
// Otherwise they may not be equivalent.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user