added local ptr correction of store instruction. change compilation to llvm ptx for tests

This commit is contained in:
Evghenii
2014-01-07 18:54:23 +01:00
parent 1303b07b72
commit 21313e52b4
2 changed files with 3 additions and 2 deletions

View File

@@ -3049,6 +3049,7 @@ FunctionEmitContext::StoreInst(llvm::Value *value, llvm::Value *ptr) {
llvm::dyn_cast<llvm::PointerType>(ptr->getType());
AssertPos(currentPos, pt != NULL);
ptr = lCorrectLocalPtr(this, ptr); /* NVPTX */
llvm::StoreInst *inst = new llvm::StoreInst(value, ptr, bblock);
if (g->opt.forceAlignedMemory &&