summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-03-18 21:21:12 +0000
committerSam Clegg <sbc@chromium.org>2019-03-18 21:21:12 +0000
commitb7708ec87fcfaaa1526469bd010cb10f9b9f1495 (patch)
tree86248c8c58de521f64d53c8799588b8b598eb4d3 /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
parentf89343bc47dcac93aa333b2363f4a681143c463f (diff)
downloadbcm5719-llvm-b7708ec87fcfaaa1526469bd010cb10f9b9f1495.tar.gz
bcm5719-llvm-b7708ec87fcfaaa1526469bd010cb10f9b9f1495.zip
[WebAssembly] Don't override default implementation of isOffsetFoldingLegal. NFC.
The default implementation does we want and is going to more compatible with dynamic linking (-fPIC) support that is planned. This is NFC because currently we only build wasm with `-relocation-model=static` which in turn means that the default `isOffsetFoldingLegal` always returns true today. Differential Revision: https://reviews.llvm.org/D54661 llvm-svn: 356410
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
index 9f81da01f90..aa7bba8b17d 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
@@ -294,12 +294,6 @@ FastISel *WebAssemblyTargetLowering::createFastISel(
return WebAssembly::createFastISel(FuncInfo, LibInfo);
}
-bool WebAssemblyTargetLowering::isOffsetFoldingLegal(
- const GlobalAddressSDNode * /*GA*/) const {
- // All offsets can be folded.
- return true;
-}
-
MVT WebAssemblyTargetLowering::getScalarShiftAmountTy(const DataLayout & /*DL*/,
EVT VT) const {
unsigned BitWidth = NextPowerOf2(VT.getSizeInBits() - 1);
OpenPOWER on IntegriCloud