summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-01-21 02:09:05 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-01-21 02:09:05 +0000
commit201501995f3fc4ac74939fe82b55d9f8d1bad756 (patch)
treed49fe994bbb9b9f402161470edcbfb4af11edc5e /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent287b4bc44ef5c39346e01efb8e763dca8dec1960 (diff)
downloadbcm5719-llvm-201501995f3fc4ac74939fe82b55d9f8d1bad756.tar.gz
bcm5719-llvm-201501995f3fc4ac74939fe82b55d9f8d1bad756.zip
Favors generating "not" over "xor -1". For example.
unsigned test(unsigned a) { return ~a; } llvm used to generate: movl $4294967295, %eax xorl 4(%esp), %eax Now it generates: movl 4(%esp), %eax notl %eax It's 3 bytes shorter. llvm-svn: 62661
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud