diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-06 23:38:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-06 23:38:27 +0000 |
commit | 834f1ce0312e3d00d836f9560cb63182c2c4570f (patch) | |
tree | fa9d9d5b1ad73454fca5dd87fe5dd8b848b8bdc7 /lib/CodeGen/BranchFolding.cpp | |
parent | 9e7aba2739fb3edb3ddcf04c5d36c7c1cccb0581 (diff) |
rename isLoad -> isSimpleLoad due to evan's desire to have such a predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | lib/CodeGen/BranchFolding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index 97491628ee..151c63e373 100644 --- a/lib/CodeGen/BranchFolding.cpp +++ b/lib/CodeGen/BranchFolding.cpp @@ -353,7 +353,7 @@ static unsigned EstimateRuntime(MachineBasicBlock::iterator I, const TargetInstrDescriptor &TID = TII->get(I->getOpcode()); if (TID.Flags & M_CALL_FLAG) Time += 10; - else if (TID.Flags & (M_LOAD_FLAG|M_MAY_STORE_FLAG)) + else if (TID.isSimpleLoad() || (TID.Flags & M_MAY_STORE_FLAG)) Time += 2; else ++Time; |