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/PPCSubtarget.h | |
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/PPCSubtarget.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCSubtarget.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h index 7fd907990ce..48d6365d3e7 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.h +++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h @@ -298,7 +298,9 @@ public: bool isSVR4ABI() const { return !isDarwinABI(); } bool isELFv2ABI() const; - bool enableEarlyIfConversion() const override { return hasISEL(); } + /// Originally, this function return hasISEL(). Now we always enable it, + /// but may expand the ISEL instruction later. + bool enableEarlyIfConversion() const override { return true; } // Scheduling customization. bool enableMachineScheduler() const override; |