diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2014-03-24 16:07:30 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2014-03-24 16:07:30 +0000 |
| commit | da99c6eff5f50b8fb7642fb0db59bbd1d5092913 (patch) | |
| tree | 427810ce0ec450218ec9c3248cd4de9d31ffa185 /llvm/lib/Target/R600/SIISelLowering.cpp | |
| parent | c9a67a2b6d65b15ce3aae9ec00eda255751d851d (diff) | |
| download | bcm5719-llvm-da99c6eff5f50b8fb7642fb0db59bbd1d5092913.tar.gz bcm5719-llvm-da99c6eff5f50b8fb7642fb0db59bbd1d5092913.zip | |
R600/SI: Promote fp64 SELECT to i64
This type promotion is replacing a Tablegen pattern and it is already
covered by existing tests.
llvm-svn: 204617
Diffstat (limited to 'llvm/lib/Target/R600/SIISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/R600/SIISelLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/SIISelLowering.cpp b/llvm/lib/Target/R600/SIISelLowering.cpp index fd1e3a69bd1..47376b40286 100644 --- a/llvm/lib/Target/R600/SIISelLowering.cpp +++ b/llvm/lib/Target/R600/SIISelLowering.cpp @@ -104,6 +104,8 @@ SITargetLowering::SITargetLowering(TargetMachine &TM) : setOperationAction(ISD::STORE, MVT::v4i32, Custom); setOperationAction(ISD::SELECT, MVT::i64, Custom); + setOperationAction(ISD::SELECT, MVT::f64, Promote); + AddPromotedToType(ISD::SELECT, MVT::f64, MVT::i64); setOperationAction(ISD::SELECT_CC, MVT::f32, Custom); setOperationAction(ISD::SELECT_CC, MVT::i32, Custom); |

