summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCDisassembler/EDDisassembler.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-20 18:49:33 +0000
committerChris Lattner <sabre@nondot.org>2010-07-20 18:49:33 +0000
commitb7a95cf16548394a02655fda903fa519c57b5209 (patch)
treeed1cfb4910213b0e50679de6f050ec4524e64543 /llvm/lib/MC/MCDisassembler/EDDisassembler.h
parent529989b8b6c698f0b26104cc273e5614bf3dc22e (diff)
downloadbcm5719-llvm-b7a95cf16548394a02655fda903fa519c57b5209.tar.gz
bcm5719-llvm-b7a95cf16548394a02655fda903fa519c57b5209.zip
delete a loop that just generates dead code. In an example
like this: void *test(long N) { return new int[N][42][42]; } the loop generates two dead mul instructions: %tmp = load i64* %N.addr ; <i64> [#uses=2] %0 = mul i64 %tmp, 7056 ; <i64> [#uses=1] %1 = mul i64 %tmp, 42 ; <i64> [#uses=1] %2 = mul i64 %1, 42 ; <i64> [#uses=0] %call = call noalias i8* @_Znam(i64 %0) ; <i8*> [#uses=1] The scale of these multiplies is already handled by the typesize stuff. llvm-svn: 108884
Diffstat (limited to 'llvm/lib/MC/MCDisassembler/EDDisassembler.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud