summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-08-15 22:09:40 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-08-15 22:09:40 +0000
commit8bc586e770464d9ac799b79406e33cfc9c10928a (patch)
tree327d358b0e45e6a3c2857f81a90c71f3212209ad /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
parent3acc70e536b959b247d871b432dfd1722da19907 (diff)
downloadbcm5719-llvm-8bc586e770464d9ac799b79406e33cfc9c10928a.tar.gz
bcm5719-llvm-8bc586e770464d9ac799b79406e33cfc9c10928a.zip
Update instcombine for atomic load/store.
llvm-svn: 137664
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index 41d542af685..0a92efe37e9 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -1379,7 +1379,7 @@ Instruction *InstCombiner::visitExtractValueInst(ExtractValueInst &EV) {
// load from a GEP. This reduces the size of the load.
// FIXME: If a load is used only by extractvalue instructions then this
// could be done regardless of having multiple uses.
- if (!L->isVolatile() && L->hasOneUse()) {
+ if (L->isSimple() && L->hasOneUse()) {
// extractvalue has integer indices, getelementptr has Value*s. Convert.
SmallVector<Value*, 4> Indices;
// Prefix an i32 0 since we need the first element.
OpenPOWER on IntegriCloud