summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-06-24 04:05:21 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-06-24 04:05:21 +0000
commitd7708773288c4f33bf98c724f7a486b5973b8cc6 (patch)
treeda2706e419335edde86f19e16552adcc1da3cd21 /llvm/lib/Target/X86/X86FastISel.cpp
parent024402dcdf0c45b48b15d9a5de7f841e61e9bedc (diff)
downloadbcm5719-llvm-d7708773288c4f33bf98c724f7a486b5973b8cc6.tar.gz
bcm5719-llvm-d7708773288c4f33bf98c724f7a486b5973b8cc6.zip
Switch more loops to be range-based
This makes the code a little more concise, no functional change is intended. llvm-svn: 273644
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index 53ad1e90000..5b0d02560de 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -958,9 +958,8 @@ redo_gep:
// our address and just match the value instead of completely failing.
AM = SavedAM;
- for (SmallVectorImpl<const Value *>::reverse_iterator
- I = GEPs.rbegin(), E = GEPs.rend(); I != E; ++I)
- if (handleConstantAddresses(*I, AM))
+ for (const Value *I : reverse(GEPs))
+ if (handleConstantAddresses(I, AM))
return true;
return false;
OpenPOWER on IntegriCloud