diff options
| author | Dan Gohman <gohman@apple.com> | 2009-10-09 21:02:10 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-10-09 21:02:10 +0000 |
| commit | e5496f6ba52d5603eb26d72b421c2d8731f4ac24 (patch) | |
| tree | 93f52d6527cc59b28dfa0cef1773c29e074cf5c9 /lib/CodeGen/MachineLICM.cpp | |
| parent | f9a38e927ec463018c38d44e71c096032d2bd855 (diff) | |
| download | external_llvm-e5496f6ba52d5603eb26d72b421c2d8731f4ac24.zip external_llvm-e5496f6ba52d5603eb26d72b421c2d8731f4ac24.tar.gz external_llvm-e5496f6ba52d5603eb26d72b421c2d8731f4ac24.tar.bz2 | |
isTriviallyReMaterializable checks the
TargetInstrDesc::isRematerializable flag, so it isn't necessary to do
this check in its callers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineLICM.cpp')
| -rw-r--r-- | lib/CodeGen/MachineLICM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp index 5e2d39e..5612899 100644 --- a/lib/CodeGen/MachineLICM.cpp +++ b/lib/CodeGen/MachineLICM.cpp @@ -322,7 +322,7 @@ bool MachineLICM::IsProfitableToHoist(MachineInstr &MI) { // FIXME: For now, only hoist re-materilizable instructions. LICM will // increase register pressure. We want to make sure it doesn't increase // spilling. - if (!TID.isRematerializable() || !TII->isTriviallyReMaterializable(&MI)) + if (!TII->isTriviallyReMaterializable(&MI)) return false; // If result(s) of this instruction is used by PHIs, then don't hoist it. |
