diff options
author | Tony Jiang <jtony@ca.ibm.com> | 2017-01-16 14:43:12 +0000 |
---|---|---|
committer | Tony Jiang <jtony@ca.ibm.com> | 2017-01-16 14:43:12 +0000 |
commit | 7630b8c5ee3109986a013b71f7b9352b23101aad (patch) | |
tree | d53d8765f72a5b78d758fb3e854834d3a6213f34 /llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | |
parent | f2b135ac3ae26d353c113c10359e6e839ad4845e (diff) | |
download | bcm5719-llvm-7630b8c5ee3109986a013b71f7b9352b23101aad.tar.gz bcm5719-llvm-7630b8c5ee3109986a013b71f7b9352b23101aad.zip |
[PowerPC] Expand ISEL instruction into if-then-else sequence.
Generally, the ISEL is expanded into if-then-else sequence, in some
cases (like when the destination register is the same with the true
or false value register), it may just be expanded into just the if
or else sequence.
llvm-svn: 292128
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index 805d9b9ea6b..5b540b1ab6f 100644 --- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -3536,10 +3536,6 @@ void PPCDAGToDAGISel::PostprocessISelDAG() { // be folded with the isel so that we don't need to materialize a register // containing zero. bool PPCDAGToDAGISel::AllUsersSelectZero(SDNode *N) { - // If we're not using isel, then this does not matter. - if (!PPCSubTarget->hasISEL()) - return false; - for (SDNode::use_iterator UI = N->use_begin(), UE = N->use_end(); UI != UE; ++UI) { SDNode *User = *UI; |