[XCore] Simplify code that checks for an aligned base plus a constant.
authorRichard Osborne <richard@xmos.com>
Sat, 4 May 2013 17:17:10 +0000 (17:17 +0000)
committerRichard Osborne <richard@xmos.com>
Sat, 4 May 2013 17:17:10 +0000 (17:17 +0000)
commit40827bc716e9eda3e70460207696f2ec10dd67ad
treeb098c43c236785e6ff7ba57a5c5c36dbd1de5129
parent597432fbe53bda0069b0ad13e5ad57ae0ee7ee45
[XCore] Simplify code that checks for an aligned base plus a constant.

The code now makes use of ComputeMaskedBits,
SelectionDAG::isBaseWithConstantOffset and TargetLowering::isGAPlusOffset
where appropriate reducing the amount of logic needed in XCoreISelLowering.
No intended functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181125 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/XCore/XCoreISelLowering.cpp
lib/Target/XCore/XCoreISelLowering.h