summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-05-13 05:48:45 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-05-13 05:48:45 +0000
commitd3c6dfe85337f891feb756de0d27b10aa3dee81c (patch)
tree00a62dc4bb4da23c2b02584ae1dc1152baa7de8c /llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
parent5a93253fc862762c0cdd11fbdb1d4c4e4951262a (diff)
downloadbcm5719-llvm-d3c6dfe85337f891feb756de0d27b10aa3dee81c.tar.gz
bcm5719-llvm-d3c6dfe85337f891feb756de0d27b10aa3dee81c.zip
Replace the core comparison login in merge functions. We can now merge
vector<>::push_back() in: int foo(vector<int> &a, vector<unsigned> &b) { a.push_back(10); b.push_back(11); } to two calls to the same push_back function, or fold away the two copies of push_back() in: struct T { int; }; struct S { char; }; vector<T*> t; vector<S*> s; void f(T *x) { t.push_back(x); } void g(S *x) { s.push_back(x); } but leave f() and g() separate, since they refer to two different global variables. llvm-svn: 103698
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud