diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-11-01 18:42:03 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-11-01 18:42:03 +0000 |
| commit | 37536b90e1550e62e315a2ca5e4cd8b5033175d6 (patch) | |
| tree | 42bffbcf61fd8f4728c4a10e356171392c581c73 /llvm/lib/Transforms | |
| parent | 683dcc63b1a1014bb6ca4a51dacfe8a83ca8f714 (diff) | |
| download | bcm5719-llvm-37536b90e1550e62e315a2ca5e4cd8b5033175d6.tar.gz bcm5719-llvm-37536b90e1550e62e315a2ca5e4cd8b5033175d6.zip | |
remove a bunch of locking from LLVMContextImpl. Since only one thread
can be banging on a context at a time, this isn't needed. Owen, please
review.
llvm-svn: 85728
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp index 29712b3c13d..6a8148040d9 100644 --- a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp +++ b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp @@ -126,6 +126,9 @@ static bool MarkAliveBlocks(BasicBlock *BB, } } + // Store to undef and store to null are undefined and used to signal that + // they should be changed to unreachable by passes that can't modify the + // CFG. if (StoreInst *SI = dyn_cast<StoreInst>(BBI)) { Value *Ptr = SI->getOperand(1); |

