diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-08-26 15:06:10 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-08-26 15:06:10 +0000 |
commit | 838e2344ec5a028060ff51a7a9f10ae087659a92 (patch) | |
tree | eb6f8255abd892e959696adde14e727e5c97e23f /clang-tools-extra | |
parent | 35bb18c2a785535468344dc2508a98d7ca0614af (diff) | |
download | bcm5719-llvm-838e2344ec5a028060ff51a7a9f10ae087659a92.tar.gz bcm5719-llvm-838e2344ec5a028060ff51a7a9f10ae087659a92.zip |
SelectionDAG: Remove unnecessary uses of TargetLowering::getPointerTy()
If we have a binary operation like ISD:ADD, we can set the result type
equal to the result type of one of its operands rather than using
TargetLowering::getPointerTy().
Also, any use of DAG.getIntPtrConstant(C) as an operand for a binary
operation can be replaced with:
DAG.getConstant(C, OtherOperand.getValueType());
llvm-svn: 189227
Diffstat (limited to 'clang-tools-extra')
0 files changed, 0 insertions, 0 deletions