Revert "TRE: make TRE a bit more aggressive"
[oota-llvm.git] / lib / Transforms / Scalar / TailRecursionElimination.cpp
index 05b9892470bb8dddebe9fd1af2ec7e8d0b5b85dd..b7580255150c48fae28ff2dbb02a62bb6ffafcca 100644 (file)
@@ -227,12 +227,10 @@ struct AllocaDerivedValueTracker {
   }
 
   void callUsesLocalStack(CallSite CS, bool IsNocapture) {
-    // Add it to the list of alloca users. If it's already there, skip further
-    // processing.
-    if (!AllocaUsers.insert(CS.getInstruction()))
-      return;
+    // Add it to the list of alloca users.
+    AllocaUsers.insert(CS.getInstruction());
 
-    // If it's nocapture then it can't capture the alloca.
+    // If it's nocapture then it can't capture this alloca.
     if (IsNocapture)
       return;