From 4425660b1f9e096534bed960ed2dd36c7f04053e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 27 Sep 2009 21:46:50 +0000 Subject: simplify some code. llvm-svn: 82936 --- llvm/lib/Transforms/Scalar/GVN.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp index f490a6d7f2c..86bbc602e39 100644 --- a/llvm/lib/Transforms/Scalar/GVN.cpp +++ b/llvm/lib/Transforms/Scalar/GVN.cpp @@ -1822,7 +1822,7 @@ bool GVN::processInstruction(Instruction *I, // Allocations are always uniquely numbered, so we can save time and memory // by fast failing them. - } else if (isa(I) || isMalloc(I) || isa(I)) { + } else if (isa(I) || isa(I)) { localAvail[I->getParent()]->table.insert(std::make_pair(Num, I)); return false; } @@ -1987,7 +1987,7 @@ bool GVN::performPRE(Function& F) { BE = CurrentBlock->end(); BI != BE; ) { Instruction *CurInst = BI++; - if (isa(CurInst) || isMalloc(CurInst) || + if (isa(CurInst) || isa(CurInst) || isa(CurInst) || (CurInst->getType() == Type::getVoidTy(F.getContext())) || CurInst->mayReadFromMemory() || CurInst->mayHaveSideEffects() || -- cgit v1.2.3