summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-09-21 16:09:37 +0000
committerSanjay Patel <spatel@rotateright.com>2015-09-21 16:09:37 +0000
commit55dcd40d3eabe3aebe4eb4cc6625d8dd7be56613 (patch)
tree7dd68bb64d49f1eb935084943af805152543dcb5 /llvm/lib/Transforms/InstCombine/InstCombineInternal.h
parentb774834429430885d62835a9a60d58308dd72a88 (diff)
downloadbcm5719-llvm-55dcd40d3eabe3aebe4eb4cc6625d8dd7be56613.tar.gz
bcm5719-llvm-55dcd40d3eabe3aebe4eb4cc6625d8dd7be56613.zip
add ShouldChangeType() variant that takes bitwidths
This is more efficient for cases like D12965 where we already have widths. llvm-svn: 248170
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 9f5cdcbb329..dbaa5a88ee3 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
@@ -341,6 +341,7 @@ public:
const unsigned SIOpd);
private:
+ bool ShouldChangeType(unsigned FromBitWidth, unsigned ToBitWidth) const;
bool ShouldChangeType(Type *From, Type *To) const;
Value *dyn_castNegVal(Value *V) const;
Value *dyn_castFNegVal(Value *V, bool NoSignedZero = false) const;
OpenPOWER on IntegriCloud