aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/LowerSwitch.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-25 03:45:50 +0000
committerChris Lattner <sabre@nondot.org>2004-02-25 03:45:50 +0000
commit985fe3df6fb6f6e9fd3077b1054c64c794bb98c8 (patch)
tree974eebb55d5882a2c2721873ffca27e6194d5f24 /lib/Transforms/Utils/LowerSwitch.cpp
parent5a83096d6a405816e9729b07d557b757d8fb725f (diff)
add an inefficient way of folding structure and constant array indexes together
into a single LEA instruction. This should improve the code generated for things like X->A.B.C[12].D. The bigger benefit is still coming though. Note that this uses an LEA instruction instead of an add, giving the register allocator more freedom. We should probably never generate ADDri32's. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerSwitch.cpp')
0 files changed, 0 insertions, 0 deletions