diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-02 01:44:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-02 01:44:04 +0000 |
commit | 584a11ae2271354cdb41bc07c6461debf1789ccc (patch) | |
tree | ce57f8de1b1dd47e86bcbd1d3dd6e2d49bdf9397 /llvm/lib/Bytecode/Reader/Reader.cpp | |
parent | 55402d4403c2852da9c94e0fa7286ae11ccbbe53 (diff) | |
download | bcm5719-llvm-584a11ae2271354cdb41bc07c6461debf1789ccc.tar.gz bcm5719-llvm-584a11ae2271354cdb41bc07c6461debf1789ccc.zip |
Implement the getRegForInlineAsmConstraint method for PPC. With recent
sdisel changes, this eliminates a ton of copies around common inline asms.
For example:
int test2(int Y, int X) {
asm("foo %0, %1" : "=r"(X): "r"(X));
return X;
}
now compiles to:
_test2:
foo r3, r4
blr
instead of:
_test2:
mr r2, r4
foo r2, r2
mr r3, r2
blr
GCC produces:
_test2:
foo r4, r4
mr r3,r4
blr
llvm-svn: 31367
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp')
0 files changed, 0 insertions, 0 deletions