Stephen Lin
93ab6bf534
CHECK-LABEL-ify some code gen tests to improve diagnostic experience when tests fail.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188447 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-15 06:47:53 +00:00
David Blaikie
1b76fbc5b7
Provide fixed target triples to make test results consistent across ARM hosts.
...
Patch by David Tweed, review by myself and John McCall.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163564 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-10 23:06:08 +00:00
Richard Smith
ac45293276
Devirtualize calls on glvalues produced by class member access expressions.
...
Based on a patch by Yin Ma!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161998 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-15 22:59:28 +00:00
Rafael Espindola
0713d993cd
Fix a crash I introduced in r159212.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159279 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 17:44:39 +00:00
Rafael Espindola
12582bdc2e
Fix a bug in my previous patch: If we are not doing a virtual call because
...
the member expression is qualified, call the method specified in the code,
not the most derived one we can find.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159219 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 19:18:25 +00:00
Anders Carlsson
cd0b32e73a
Strip off parens and no-op casts when deciding if an expr can be devirtualized. Fixes the second half of PR9660.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129253 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-10 18:20:53 +00:00
Daniel Dunbar
a5728872c7
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.
...
- This is designed to make it obvious that %clang_cc1 is a "test variable"
which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
can be useful to redefine what gets run as 'clang -cc1' (for example, to set
a default target).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91446 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-15 20:14:24 +00:00
Anders Carlsson
4a0d832ecd
Even more devirtualization cleverness.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83886 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-12 19:59:15 +00:00
Anders Carlsson
cf5deecd78
More devirtualization improvements.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83883 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-12 19:51:33 +00:00
Anders Carlsson
7636648769
Devirtualize calls on temporaries. A().f() for example.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83882 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-12 19:45:47 +00:00
Anders Carlsson
8e7670de19
Factor out devirtualization checking into a separate function and make it handle references correctly.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83880 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-12 19:41:04 +00:00