summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2016-06-08 21:55:26 +0000
committerQuentin Colombet <qcolombet@apple.com>2016-06-08 21:55:26 +0000
commit9f8e209c60f130cfb443ff2dbb9414d5a0b2d6de (patch)
tree1b37ee01c0137dea006265e7f926adbbe34aeba2 /llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
parent9d26805f42d986f6f904966db53cb4a5f0efdf43 (diff)
downloadbcm5719-llvm-9f8e209c60f130cfb443ff2dbb9414d5a0b2d6de.tar.gz
bcm5719-llvm-9f8e209c60f130cfb443ff2dbb9414d5a0b2d6de.zip
[RegisterBankInfo] Avoid code duplication in OperandsMapper for the computation of the end of range.
Refactor the code so that we do not compute in two different places the end iterator for the range of new virtual registers for a given operand. Although this refactoring was intended as NFC, this is not the case because it actually fixes a bug where we were returning a range off by 1 (too long). Right now, this could not result in an actual bug because we were accessing this range via the BreakDown size of the related operand. llvm-svn: 272208
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud