[llvm-branch-commits] [llvm-branch] r69705 - /llvm/branches/Apple/Dib/lib/Transforms/Scalar/LoopUnroll.cpp
Bill Wendling
isanbard at gmail.com
Tue Apr 21 13:19:05 PDT 2009
Author: void
Date: Tue Apr 21 15:19:05 2009
New Revision: 69705
URL: http://llvm.org/viewvc/llvm-project?rev=69705&view=rev
Log:
--- Merging (from foreign repository) r69631 into '.':
U lib/Transforms/Scalar/LoopUnroll.cpp
Adjust loop size estimate for full unrolling;
GEP's don't usually become instructions.
Modified:
llvm/branches/Apple/Dib/lib/Transforms/Scalar/LoopUnroll.cpp
Modified: llvm/branches/Apple/Dib/lib/Transforms/Scalar/LoopUnroll.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/Transforms/Scalar/LoopUnroll.cpp?rev=69705&r1=69704&r2=69705&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/lib/Transforms/Scalar/LoopUnroll.cpp (original)
+++ llvm/branches/Apple/Dib/lib/Transforms/Scalar/LoopUnroll.cpp Tue Apr 21 15:19:05 2009
@@ -89,6 +89,8 @@
// Ignore instructions only used by the loop terminator.
} else if (isa<DbgInfoIntrinsic>(I)) {
// Ignore debug instructions
+ } else if (isa<GetElementPtrInst>(I) && I->hasOneUse()) {
+ // Ignore GEP as they generally are subsumed into a load or store.
} else if (isa<CallInst>(I)) {
// Estimate size overhead introduced by call instructions which
// is higher than other instructions. Here 3 and 10 are magic
More information about the llvm-branch-commits
mailing list