OSDN Git Service

Merge "Revert "Revert "Inline methods with loops."""
authorNicolas Geoffray <ngeoffray@google.com>
Fri, 22 Jan 2016 13:35:19 +0000 (13:35 +0000)
committerGerrit Code Review <noreply-gerritcodereview@google.com>
Fri, 22 Jan 2016 13:35:19 +0000 (13:35 +0000)
1  2 
compiler/optimizing/nodes.h

@@@ -689,6 -689,10 +689,10 @@@ class HLoopInformation : public ArenaOb
    void Add(HBasicBlock* block);
    void Remove(HBasicBlock* block);
  
+   void ClearAllBlocks() {
+     blocks_.ClearAllBits();
+   }
   private:
    // Internal recursive implementation of `Populate`.
    void PopulateRecursive(HBasicBlock* block);
@@@ -2725,6 -2729,8 +2729,6 @@@ class HCondition : public HBinaryOperat
  
    bool IsGtBias() const { return bias_ == ComparisonBias::kGtBias; }
  
 -  bool IsLtBias() const { return bias_ == ComparisonBias::kLtBias; }
 -
    void SetBias(ComparisonBias bias) { bias_ = bias; }
  
    bool InstructionDataEquals(HInstruction* other) const OVERRIDE {
    bool IsFPConditionTrueIfNaN() const {
      DCHECK(Primitive::IsFloatingPointType(InputAt(0)->GetType()));
      IfCondition if_cond = GetCondition();
 -    if (if_cond == kCondNE) {
 -      return true;
 -    } else if (if_cond == kCondEQ) {
 -      return false;
 -    }
 -    return ((if_cond == kCondGT) || (if_cond == kCondGE)) && IsGtBias();
 +    return IsGtBias() ? ((if_cond == kCondGT) || (if_cond == kCondGE)) : (if_cond == kCondNE);
    }
  
    bool IsFPConditionFalseIfNaN() const {
      DCHECK(Primitive::IsFloatingPointType(InputAt(0)->GetType()));
      IfCondition if_cond = GetCondition();
 -    if (if_cond == kCondEQ) {
 -      return true;
 -    } else if (if_cond == kCondNE) {
 -      return false;
 -    }
 -    return ((if_cond == kCondLT) || (if_cond == kCondLE)) && IsGtBias();
 +    return IsGtBias() ? ((if_cond == kCondLT) || (if_cond == kCondLE)) : (if_cond == kCondEQ);
    }
  
   private: