summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-09-11 21:29:34 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-09-11 21:29:34 +0000
commit8b4e4af5ed77adcca62380a85b7688045367c661 (patch)
treea28159e845ba41b06571cf6f7bc4922b828a1f0d
parent077f5b41e4b0ee1764a55111f794e30e8e8eaafb (diff)
downloadbcm5719-llvm-8b4e4af5ed77adcca62380a85b7688045367c661.tar.gz
bcm5719-llvm-8b4e4af5ed77adcca62380a85b7688045367c661.zip
ScalarOpts: Use std::list for Candidates, NFC
There is nothing intrusive about the Candidate list; use std::list over llvm::ilist for simplicity. llvm-svn: 281177
-rw-r--r--llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
index 420a41e83fe..b440db377e2 100644
--- a/llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
+++ b/llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
@@ -66,6 +66,7 @@
#include "llvm/Support/raw_ostream.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/Local.h"
+#include <list>
#include <vector>
using namespace llvm;
@@ -79,7 +80,7 @@ class StraightLineStrengthReduce : public FunctionPass {
public:
// SLSR candidate. Such a candidate must be in one of the forms described in
// the header comments.
- struct Candidate : public ilist_node<Candidate> {
+ struct Candidate {
enum Kind {
Invalid, // reserved for the default constructor
Add, // B + i * S
@@ -199,7 +200,7 @@ private:
DominatorTree *DT;
ScalarEvolution *SE;
TargetTransformInfo *TTI;
- ilist<Candidate> Candidates;
+ std::list<Candidate> Candidates;
// Temporarily holds all instructions that are unlinked (but not deleted) by
// rewriteCandidateWithBasis. These instructions will be actually removed
// after all rewriting finishes.
OpenPOWER on IntegriCloud