mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Change a bunch of isVolatile() checks to check for atomic load/store as well.
No tests; these changes aren't really interesting in the sense that the logic is the same for volatile and atomic. I believe this completes all of the changes necessary for the optimizer to handle loads and stores correctly. I'm going to try and come up with some additional testing, though. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139533 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -811,8 +811,8 @@ bool JumpThreading::ProcessBlock(BasicBlock *BB) {
|
||||
/// important optimization that encourages jump threading, and needs to be run
|
||||
/// interlaced with other jump threading tasks.
|
||||
bool JumpThreading::SimplifyPartiallyRedundantLoad(LoadInst *LI) {
|
||||
// Don't hack volatile loads.
|
||||
if (LI->isVolatile()) return false;
|
||||
// Don't hack volatile/atomic loads.
|
||||
if (!LI->isSimple()) return false;
|
||||
|
||||
// If the load is defined in a block with exactly one predecessor, it can't be
|
||||
// partially redundant.
|
||||
|
Reference in New Issue
Block a user