OSDN Git Service

Disable the PatchableFunction pass for NVPTX & Wasm
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 19 Apr 2016 06:24:58 +0000 (06:24 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 19 Apr 2016 06:24:58 +0000 (06:24 +0000)
PatchableFunction requires AllVRegsAllocated that these targets don't
provide.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266720 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/NVPTX/NVPTXTargetMachine.cpp
lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp

index 19f74e4..60cbf79 100644 (file)
@@ -227,6 +227,7 @@ void NVPTXPassConfig::addIRPasses() {
   disablePass(&LiveDebugValuesID);
   disablePass(&PostRASchedulerID);
   disablePass(&FuncletLayoutID);
+  disablePass(&PatchableFunctionID);
 
   addPass(createNVVMReflectPass());
   if (getOptLevel() != CodeGenOpt::None)
index 5b8e19b..b9af361 100644 (file)
@@ -191,6 +191,7 @@ void WebAssemblyPassConfig::addPostRegAlloc() {
   disablePass(&FuncletLayoutID);
   disablePass(&StackMapLivenessID);
   disablePass(&LiveDebugValuesID);
+  disablePass(&PatchableFunctionID);
 
   if (getOptLevel() != CodeGenOpt::None) {
     // Mark registers as representing wasm's expression stack.