aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-04 19:02:07 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-04 19:02:07 +0000
commitd7fd7bfc3128db6fe73f3150ce20038cc1a5e3ac (patch)
treedd2a1d38e89a5ed95852b042d195cc82375a3c0d /llvm/lib/CodeGen/MachineCSE.cpp
parent093a94cdaefa22c42e1a6013e6ac2209a40e00a5 (diff)
downloadllvm-d7fd7bfc3128db6fe73f3150ce20038cc1a5e3ac.zip
llvm-d7fd7bfc3128db6fe73f3150ce20038cc1a5e3ac.tar.gz
llvm-d7fd7bfc3128db6fe73f3150ce20038cc1a5e3ac.tar.bz2
Explicitly request physreg coalesing for a bunch of Thumb2 unit tests.
These tests all follow the same pattern: mov r2, r0 movs r0, #0 $CMP r2, r1 it eq moveq r0, #1 bx lr The first 'mov' can be eliminated by rematerializing 'movs r0, #0' below the test instruction: $CMP r0, r1 mov.w r0, #0 it eq moveq r0, #1 bx lr So far, only physreg coalescing can do that. The register allocators won't yet split live ranges just to eliminate copies. They can learn, but this particular problem is not likely to show up in real code. It only appears because r0 is used for both the function argument and return value. llvm-svn: 130858
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
0 files changed, 0 insertions, 0 deletions