mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
remove dead expr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26116 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -195,7 +195,6 @@ bool LoopSimplify::ProcessLoop(Loop *L) {
|
|||||||
// incoming values (the loop is canonicalized), we may have simplified the PHI
|
// incoming values (the loop is canonicalized), we may have simplified the PHI
|
||||||
// down to 'X = phi [X, Y]', which should be replaced with 'Y'.
|
// down to 'X = phi [X, Y]', which should be replaced with 'Y'.
|
||||||
PHINode *PN;
|
PHINode *PN;
|
||||||
DominatorSet &DS = getAnalysis<DominatorSet>();
|
|
||||||
for (BasicBlock::iterator I = L->getHeader()->begin();
|
for (BasicBlock::iterator I = L->getHeader()->begin();
|
||||||
(PN = dyn_cast<PHINode>(I++)); )
|
(PN = dyn_cast<PHINode>(I++)); )
|
||||||
if (Value *V = PN->hasConstantValue()) {
|
if (Value *V = PN->hasConstantValue()) {
|
||||||
|
Reference in New Issue
Block a user