diff options
author | Todd Fiala <todd.fiala@gmail.com> | 2016-04-06 01:14:37 +0000 |
---|---|---|
committer | Todd Fiala <todd.fiala@gmail.com> | 2016-04-06 01:14:37 +0000 |
commit | 58c4dd7a71300a0e542efc2de0ce6a605627913a (patch) | |
tree | 4aa5d771969e01c544cc2ac721608b3442dba5fe /llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp | |
parent | bfc9131454a8a95196463612a49266ec1ae25bbd (diff) | |
download | llvm-58c4dd7a71300a0e542efc2de0ce6a605627913a.zip llvm-58c4dd7a71300a0e542efc2de0ce6a605627913a.tar.gz llvm-58c4dd7a71300a0e542efc2de0ce6a605627913a.tar.bz2 |
make TestRegisterVariables slightly more resilient
This test sets the compiler optimization level to -O1 and
makes some assumptions about how local frame vars will be
stored (i.e. in registers). These assumptions are not always
true.
I did a first-pass set of improvements that:
(1) no longer assumes that every one of the target locations has
every variable in a register. Sometimes the compiler
is even smarter and skips the register entirely.
(2) simply expects one of the 5 or so variables it checks
to be in a register.
This test probably passes on a whole lot more systems than it
used to now. This is certainly true on OS X.
llvm-svn: 265498
Diffstat (limited to 'llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions