aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86InstrInfo.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-08-28 23:48:31 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-08-28 23:48:31 +0000
commitfc937c92f405b80785d98546ff6883826a6fcc26 (patch)
tree0384768491997c341ecb57a52b9e1cf7a299f65b /lib/Target/X86/X86InstrInfo.h
parent7b0249b93a3ca2fe31c9cf95360816a61ab9b517 (diff)
downloadexternal_llvm-fc937c92f405b80785d98546ff6883826a6fcc26.zip
external_llvm-fc937c92f405b80785d98546ff6883826a6fcc26.tar.gz
external_llvm-fc937c92f405b80785d98546ff6883826a6fcc26.tar.bz2
Swap fp comparison operands and change predicate to allow load folding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrInfo.h')
-rw-r--r--lib/Target/X86/X86InstrInfo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrInfo.h b/lib/Target/X86/X86InstrInfo.h
index 2b089f3..6d0eebe 100644
--- a/lib/Target/X86/X86InstrInfo.h
+++ b/lib/Target/X86/X86InstrInfo.h
@@ -54,6 +54,11 @@ namespace X86 {
/// e.g. turning COND_E to COND_NE.
CondCode GetOppositeBranchCondition(X86::CondCode CC);
+ /// GetSwappedBranchCondition - Return the branch condition that would be
+ /// the result of exchanging the two operands of a comparison without
+ /// changing the result produced.
+ /// e.g. COND_E to COND_E, COND_G -> COND_L
+ CondCode GetSwappedBranchCondition(X86::CondCode CC);
}
/// X86II - This namespace holds all of the target specific flags that