summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2018-01-19 20:56:04 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2018-01-19 20:56:04 +0000
commit426f6bef44c3ad0ff4bc26713979fe0c2dbb682d (patch)
treef72f89408937a68f95bf6dea3f377f2f86fe7dc3 /llvm/lib/Target
parent31112895d966ccd5a3098866f0826a789d36f3b7 (diff)
downloadbcm5719-llvm-426f6bef44c3ad0ff4bc26713979fe0c2dbb682d.tar.gz
bcm5719-llvm-426f6bef44c3ad0ff4bc26713979fe0c2dbb682d.zip
[SystemZ] Prefer LOCHI over generating IPM sequences
On current machines we have load-on-condition instructions that can be used to directly implement the SETCC semantics. If we have those, it is always preferable to use them instead of generating the IPM sequence. llvm-svn: 322989
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp b/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
index f12147cf3ea..81175013ed2 100644
--- a/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
@@ -1583,6 +1583,11 @@ SDValue SystemZDAGToDAGISel::expandSelectBoolean(SDNode *Node) {
}
void SystemZDAGToDAGISel::PreprocessISelDAG() {
+ // If we have conditional immediate loads, we always prefer
+ // using those over an IPM sequence.
+ if (Subtarget->hasLoadStoreOnCond2())
+ return;
+
bool MadeChange = false;
for (SelectionDAG::allnodes_iterator I = CurDAG->allnodes_begin(),
OpenPOWER on IntegriCloud