diff options
author | Chad Rosier <mcrosier@codeaurora.org> | 2016-06-14 12:47:18 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@codeaurora.org> | 2016-06-14 12:47:18 +0000 |
commit | 66a9d07a86765596835e23b309e099689f8e685d (patch) | |
tree | 8ac32201b8566f3d6f73e2b0bf2b53bdec41ae0d /llvm/lib/Transforms/Scalar | |
parent | 9768b0ae7328d2151b85c612e6686553206d2ab1 (diff) | |
download | bcm5719-llvm-66a9d07a86765596835e23b309e099689f8e685d.tar.gz bcm5719-llvm-66a9d07a86765596835e23b309e099689f8e685d.zip |
[MergedLoadStoreMotion] Before quering AA verify the loads are the same.
Basicaa stats show the number of queries in Spec2k6 are reduced by 4540
or ~.67% overall.
llvm-svn: 272661
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r-- | llvm/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp b/llvm/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp index 12ee3d8da6a..37a4bfda39b 100644 --- a/llvm/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp +++ b/llvm/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp @@ -199,7 +199,7 @@ static LoadInst *canHoistFromBlock(BasicBlock *BB1, LoadInst *Load0, MemoryLocation Loc0 = MemoryLocation::get(Load0); MemoryLocation Loc1 = MemoryLocation::get(Load1); - if (AA->isMustAlias(Loc0, Loc1) && Load0->isSameOperationAs(Load1) && + if (Load0->isSameOperationAs(Load1) && AA->isMustAlias(Loc0, Loc1) && !isLoadHoistBarrierInRange(BB1->front(), *Load1, Load1, SafeToLoadUnconditionally, AA) && !isLoadHoistBarrierInRange(BB0->front(), *Load0, Load0, |