summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-03-29 08:22:29 +0000
committerTim Northover <tnorthover@apple.com>2014-03-29 08:22:29 +0000
commitcea0abb60a6c075941017733fb1e4c789c7ee1e3 (patch)
treefbb23569b0f32b59c4a9376b6e1e9830ab49adba /llvm/lib/Object/MachOObjectFile.cpp
parent0999cbd0b9ed8aa893cce10d681dec6d54b200ad (diff)
downloadbcm5719-llvm-cea0abb60a6c075941017733fb1e4c789c7ee1e3.tar.gz
bcm5719-llvm-cea0abb60a6c075941017733fb1e4c789c7ee1e3.zip
CodeGenPrep: wrangle IR to exploit AArch64 tbz/tbnz inst.
Given IR like: %bit = and %val, #imm-with-1-bit-set %tst = icmp %bit, 0 br i1 %tst, label %true, label %false some targets can emit just a single instruction (tbz/tbnz in the AArch64 case). However, with ISel acting at the basic-block level, all three instructions need to be together for this to be possible. This adds another transformation to CodeGenPrep to expose these opportunities, if targets opt in via the hook. llvm-svn: 205086
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud