diff options
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 355455a..fad3d4a 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -6657,6 +6657,10 @@ static bool splitMergedValStore(StoreInst &SI, const DataLayout &DL, DL.getTypeSizeInBits(SplitStoreType)) return false; + // Don't split the store if it is volatile. + if (SI.isVolatile()) + return false; + // Match the following patterns: // (store (or (zext LValue to i64), // (shl (zext HValue to i64), 32)), HalfValBitSize) |