summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/LevelRaise.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-18 03:42:07 +0000
committerChris Lattner <sabre@nondot.org>2005-09-18 03:42:07 +0000
commit1521298993a8184d40e4470769bfb6493be51bfc (patch)
tree94fb568586bb7752350a660a32e1fd40c4ae2ce6 /llvm/lib/Transforms/LevelRaise.cpp
parentc6d63a9832669f24d00fd10baba570d19c156b3a (diff)
downloadbcm5719-llvm-1521298993a8184d40e4470769bfb6493be51bfc.tar.gz
bcm5719-llvm-1521298993a8184d40e4470769bfb6493be51bfc.zip
Implement or.ll:test21. This teaches instcombine to be able to turn this:
struct { unsigned int bit0:1; unsigned int ubyte:31; } sdata; void foo() { sdata.ubyte++; } into this: foo: add DWORD PTR [sdata], 2 ret instead of this: foo: mov %EAX, DWORD PTR [sdata] mov %ECX, %EAX add %ECX, 2 and %ECX, -2 and %EAX, 1 or %EAX, %ECX mov DWORD PTR [sdata], %EAX ret llvm-svn: 23376
Diffstat (limited to 'llvm/lib/Transforms/LevelRaise.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud