aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2015-11-10 18:01:16 +0000
committerRenato Golin <renato.golin@linaro.org>2015-11-10 18:01:16 +0000
commit0e77d72b0ad39fb31d4a435497bd4610e61c586f (patch)
tree2574e11db523ab14deade6458b69a556ddf6f18f /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parentfe68904fa6001b29930391722ba1d4401906cb99 (diff)
downloadllvm-0e77d72b0ad39fb31d4a435497bd4610e61c586f.zip
llvm-0e77d72b0ad39fb31d4a435497bd4610e61c586f.tar.gz
llvm-0e77d72b0ad39fb31d4a435497bd4610e61c586f.tar.bz2
Revert "Strip metadata when speculatively hoisting instructions"
This reverts commit r252604, as it broke all ARM and AArch64 buildbots, as well as some x86, et al. llvm-svn: 252623
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index ff81e7d..e0c598f 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -1618,11 +1618,6 @@ static bool SpeculativelyExecuteBB(BranchInst *BI, BasicBlock *ThenBB,
SpeculatedStore->setOperand(0, S);
}
- // Metadata can be dependent on the condition we are hoisting above.
- // Conservatively strip all metadata on the instruction.
- for (auto &I: *ThenBB)
- I.dropUnknownNonDebugMetadata();
-
// Hoist the instructions.
BB->getInstList().splice(BI->getIterator(), ThenBB->getInstList(),
ThenBB->begin(), std::prev(ThenBB->end()));