diff options
author | Dan Gohman <gohman@apple.com> | 2008-12-03 02:30:17 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-12-03 02:30:17 +0000 |
commit | ae3ba45eb244885dcab0629c6b7ce8dc03d0a3c3 (patch) | |
tree | 54253f5c9431045af3f388d08c2773dbda4aac0d /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | ac5392c59606aeccea6254a809fcc0c8fe93b3b8 (diff) | |
download | bcm5719-llvm-ae3ba45eb244885dcab0629c6b7ce8dc03d0a3c3.tar.gz bcm5719-llvm-ae3ba45eb244885dcab0629c6b7ce8dc03d0a3c3.zip |
Add a sanity-check to tablegen to catch the case where isSimpleLoad
is set but mayLoad is not set. Fix all the problems this turned up.
Change code to not use isSimpleLoad instead of mayLoad unless it
really wants isSimpleLoad.
llvm-svn: 60459
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index aedd7c9be7e..727f0a5cd14 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -414,7 +414,7 @@ static unsigned EstimateRuntime(MachineBasicBlock::iterator I, const TargetInstrDesc &TID = I->getDesc(); if (TID.isCall()) Time += 10; - else if (TID.isSimpleLoad() || TID.mayStore()) + else if (TID.mayLoad() || TID.mayStore()) Time += 2; else ++Time; |