[llvm-commits] [llvm] r136723 - /llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
Eli Friedman
eli.friedman at gmail.com
Tue Aug 2 14:35:16 PDT 2011
Author: efriedma
Date: Tue Aug 2 16:35:16 2011
New Revision: 136723
URL: http://llvm.org/viewvc/llvm-project?rev=136723&view=rev
Log:
Add new atomic instructions to SCCP. No functional change, but stops debug spam.
Modified:
llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SCCP.cpp?rev=136723&r1=136722&r2=136723&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SCCP.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SCCP.cpp Tue Aug 2 16:35:16 2011
@@ -532,6 +532,8 @@
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); }
More information about the llvm-commits
mailing list