summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-06-03 23:53:58 +0000
committerBob Wilson <bob.wilson@apple.com>2010-06-03 23:53:58 +0000
commita733daf18c95e95afe11bbedb0e043b34f87e5e3 (patch)
tree789dfd4e91a25110bdea6e65155bc285d129aaac /clang/lib/CodeGen/CGExprAgg.cpp
parent01edd68225c3c73e5af7530602d196ad65c54120 (diff)
downloadbcm5719-llvm-a733daf18c95e95afe11bbedb0e043b34f87e5e3.tar.gz
bcm5719-llvm-a733daf18c95e95afe11bbedb0e043b34f87e5e3.zip
Add some missing checks in TwoAddressInstructionPass::CoalesceExtSubRegs.
Check that all the instructions are in the same basic block, that the EXTRACT_SUBREGs write to the same subregs that are being extracted, and that the source and destination registers are in the same regclass. Some of these constraints can be relaxed with a bit more work. Jakob suggested that the loop that checks for subregs when NewSubIdx != 0 should use the "nodbg" iterator, so I made that change here, too. llvm-svn: 105437
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud