summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCISelLowering.h
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-04-05 23:29:01 +0000
committerHal Finkel <hfinkel@anl.gov>2013-04-05 23:29:01 +0000
commitff56d1a2011f239e114267c13302ea26db4f8046 (patch)
tree62f5494a854361bfdd2397eda50653cdbb0b6257 /lib/Target/PowerPC/PPCISelLowering.h
parentde80951ae9bb86ab6b4183f0d482d426c02ab708 (diff)
downloadllvm-ff56d1a2011f239e114267c13302ea26db4f8046.tar.gz
llvm-ff56d1a2011f239e114267c13302ea26db4f8046.tar.bz2
llvm-ff56d1a2011f239e114267c13302ea26db4f8046.tar.xz
Enable early if conversion on PPC
On cores for which we know the misprediction penalty, and we have the isel instruction, we can profitably perform early if conversion. This enables us to replace some small branch sequences with selects and avoid the potential stalls from mispredicting the branches. Enabling this feature required implementing canInsertSelect and insertSelect in PPCInstrInfo; isel code in PPCISelLowering was refactored to use these functions as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelLowering.h')
-rw-r--r--lib/Target/PowerPC/PPCISelLowering.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.h b/lib/Target/PowerPC/PPCISelLowering.h
index 7157b70d86..423e983980 100644
--- a/lib/Target/PowerPC/PPCISelLowering.h
+++ b/lib/Target/PowerPC/PPCISelLowering.h
@@ -16,6 +16,7 @@
#define LLVM_TARGET_POWERPC_PPC32ISELLOWERING_H
#include "PPC.h"
+#include "PPCInstrInfo.h"
#include "PPCRegisterInfo.h"
#include "PPCSubtarget.h"
#include "llvm/CodeGen/SelectionDAG.h"
@@ -327,6 +328,7 @@ namespace llvm {
class PPCTargetLowering : public TargetLowering {
const PPCSubtarget &PPCSubTarget;
const PPCRegisterInfo *PPCRegInfo;
+ const PPCInstrInfo *PPCII;
public:
explicit PPCTargetLowering(PPCTargetMachine &TM);