diff options
author | Nate Begeman <natebegeman@mac.com> | 2008-05-28 16:31:36 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2008-05-28 16:31:36 +0000 |
commit | e993b80ef5bb2e9c9e7e2a4bd604d906d4b1a203 (patch) | |
tree | d13d6464219473ad31aba78019b973a43f598ef6 | |
parent | e438c561742df95bee3b512b0049b9ccf20f8f60 (diff) | |
download | bcm5719-llvm-e993b80ef5bb2e9c9e7e2a4bd604d906d4b1a203.tar.gz bcm5719-llvm-e993b80ef5bb2e9c9e7e2a4bd604d906d4b1a203.zip |
Update some comments noticed in a recent checkin
llvm-svn: 51644
-rw-r--r-- | llvm/lib/Target/IA64/IA64ISelLowering.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/lib/Target/IA64/IA64ISelLowering.cpp b/llvm/lib/Target/IA64/IA64ISelLowering.cpp index dbf205d9323..5d2920089bf 100644 --- a/llvm/lib/Target/IA64/IA64ISelLowering.cpp +++ b/llvm/lib/Target/IA64/IA64ISelLowering.cpp @@ -91,12 +91,17 @@ IA64TargetLowering::IA64TargetLowering(TargetMachine &TM) setOperationAction(ISD::DEBUG_LOC, MVT::Other, Expand); setOperationAction(ISD::LABEL, MVT::Other, Expand); - //IA64 has these, but they are not implemented - setOperationAction(ISD::CTTZ , MVT::i64 , Expand); + // IA64 has ctlz in the form of the 'fnorm' instruction. The Legalizer + // expansion for ctlz/cttz in terms of ctpop is much larger, but lower + // latency. + // FIXME: Custom lower CTLZ when compiling for size? setOperationAction(ISD::CTLZ , MVT::i64 , Expand); + setOperationAction(ISD::CTTZ , MVT::i64 , Expand); setOperationAction(ISD::ROTL , MVT::i64 , Expand); setOperationAction(ISD::ROTR , MVT::i64 , Expand); - setOperationAction(ISD::BSWAP, MVT::i64 , Expand); // mux @rev + + // FIXME: IA64 has this, but is not implemented. should be mux @rev + setOperationAction(ISD::BSWAP, MVT::i64 , Expand); // VASTART needs to be custom lowered to use the VarArgsFrameIndex setOperationAction(ISD::VAARG , MVT::Other, Custom); |