aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-08-02 21:35:16 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-08-02 21:35:16 +0000
commitfe1926e3518ca034e04cd307b15116aed6d21bc5 (patch)
tree810f3fa15155499144f27e11b605c64f52712e27 /lib/Transforms/Scalar
parent3e69c13c301acee99c8bde7e692777bf856a6362 (diff)
downloadexternal_llvm-fe1926e3518ca034e04cd307b15116aed6d21bc5.zip
external_llvm-fe1926e3518ca034e04cd307b15116aed6d21bc5.tar.gz
external_llvm-fe1926e3518ca034e04cd307b15116aed6d21bc5.tar.bz2
Add new atomic instructions to SCCP. No functional change, but stops debug spam.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar')
-rw-r--r--lib/Transforms/Scalar/SCCP.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp
index 4e1c274..c84d67b 100644
--- a/lib/Transforms/Scalar/SCCP.cpp
+++ b/lib/Transforms/Scalar/SCCP.cpp
@@ -532,6 +532,8 @@ private:
void visitUnwindInst (TerminatorInst &I) { /*returns void*/ }
void visitUnreachableInst(TerminatorInst &I) { /*returns void*/ }
void visitFenceInst (FenceInst &I) { /*returns void*/ }
+ void visitAtomicCmpXchgInst (AtomicCmpXchgInst &I) { markOverdefined(&I); }
+ void visitAtomicRMWInst (AtomicRMWInst &I) { markOverdefined(&I); }
void visitAllocaInst (Instruction &I) { markOverdefined(&I); }
void visitVAArgInst (Instruction &I) { markAnythingOverdefined(&I); }