diff options
| author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2015-05-29 00:04:30 +0000 |
|---|---|---|
| committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2015-05-29 00:04:30 +0000 |
| commit | 0ea9d1e7531e2ba74691c5e0836b224c95c0ac95 (patch) | |
| tree | da39a610ba8235b7dfac3fe6520106a5563ce795 /llvm/lib | |
| parent | b30c50c8fae80824ea0afe1e17a94f54e21151c9 (diff) | |
| download | bcm5719-llvm-0ea9d1e7531e2ba74691c5e0836b224c95c0ac95.tar.gz bcm5719-llvm-0ea9d1e7531e2ba74691c5e0836b224c95c0ac95.zip | |
[IR] fptrunc-of-fptrunc isn't an EliminableCastPair.
Double and single rounding can produce different results.
This is the IR counterpart to r228911.
llvm-svn: 238531
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/IR/Instructions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp index 1e9d9a5695d..332df4804da 100644 --- a/llvm/lib/IR/Instructions.cpp +++ b/llvm/lib/IR/Instructions.cpp @@ -2120,7 +2120,7 @@ unsigned CastInst::isEliminableCastPair( { 0, 0, 0,99,99, 0, 0,99,99,99, 0, 3, 0}, // FPToSI | { 99,99,99, 0, 0,99,99, 0, 0,99,99, 4, 0}, // UIToFP +- firstOp { 99,99,99, 0, 0,99,99, 0, 0,99,99, 4, 0}, // SIToFP | - { 99,99,99, 0, 0,99,99, 1, 0,99,99, 4, 0}, // FPTrunc | + { 99,99,99, 0, 0,99,99, 0, 0,99,99, 4, 0}, // FPTrunc | { 99,99,99, 2, 2,99,99,10, 2,99,99, 4, 0}, // FPExt | { 1, 0, 0,99,99, 0, 0,99,99,99, 7, 3, 0}, // PtrToInt | { 99,99,99,99,99,99,99,99,99,11,99,15, 0}, // IntToPtr | |

