summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2015-02-16 21:47:54 +0000
committerMehdi Amini <mehdi.amini@apple.com>2015-02-16 21:47:54 +0000
commitb9a0fa4822748a472df4ad1762cbb5ab923dfe25 (patch)
tree45be5a98d01e2940828bf985a6722cf482fdd8bb /llvm/lib/Transforms/InstCombine/InstCombineInternal.h
parent7aab8752ba0a6d911e8f6e17b9e4fac8e1fcb144 (diff)
downloadbcm5719-llvm-b9a0fa4822748a472df4ad1762cbb5ab923dfe25.tar.gz
bcm5719-llvm-b9a0fa4822748a472df4ad1762cbb5ab923dfe25.zip
InstCombine: fold more cases of (fp_to_u/sint (u/sint_to_fp val))
Fixes radar 15486701. From: Fiona Glaser <fglaser@apple.com> llvm-svn: 229437
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineInternal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
index d12ee09d52f..1a929349601 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
@@ -245,6 +245,7 @@ public:
Instruction *FoldSPFofSPF(Instruction *Inner, SelectPatternFlavor SPF1,
Value *A, Value *B, Instruction &Outer,
SelectPatternFlavor SPF2, Value *C);
+ Instruction *FoldItoFPtoI(Instruction &FI);
Instruction *visitSelectInst(SelectInst &SI);
Instruction *visitSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI);
Instruction *visitCallInst(CallInst &CI);
OpenPOWER on IntegriCloud