diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-06-19 01:26:51 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-06-19 01:26:51 +0000 |
commit | eaa91b0a1fc68984aae51f3c4b0cf29b38f89dac (patch) | |
tree | 93a8cd9aecd8080137878288ae7fc57872f4e5ca /lib/CodeGen/IfConversion.cpp | |
parent | 4e6b1e1d999a224d932c466118aad577f27cdd56 (diff) | |
download | external_llvm-eaa91b0a1fc68984aae51f3c4b0cf29b38f89dac.zip external_llvm-eaa91b0a1fc68984aae51f3c4b0cf29b38f89dac.tar.gz external_llvm-eaa91b0a1fc68984aae51f3c4b0cf29b38f89dac.tar.bz2 |
Replace TargetInstrInfo::CanBeDuplicated() with a M_NOT_DUPLICABLE bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/IfConversion.cpp')
-rw-r--r-- | lib/CodeGen/IfConversion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp index 8702bb3..965cf6a 100644 --- a/lib/CodeGen/IfConversion.cpp +++ b/lib/CodeGen/IfConversion.cpp @@ -547,10 +547,10 @@ void IfConverter::ScanInstructions(BBInfo &BBI) { bool SeenCondBr = false; for (MachineBasicBlock::iterator I = BBI.BB->begin(), E = BBI.BB->end(); I != E; ++I) { - if (!BBI.CannotBeCopied && !TII->CanBeDuplicated(I)) + const TargetInstrDescriptor *TID = I->getInstrDescriptor(); + if ((TID->Flags & M_NOT_DUPLICABLE) != 0) BBI.CannotBeCopied = true; - const TargetInstrDescriptor *TID = I->getInstrDescriptor(); bool isPredicated = TII->isPredicated(I); bool isCondBr = BBI.IsBrAnalyzable && (TID->Flags & M_BRANCH_FLAG) != 0 && (TID->Flags & M_BARRIER_FLAG) == 0; |