Lines Matching refs:ResultPtr
3834 Value *ResultPtr = nullptr, *ResultIndex = nullptr; in optimizeMemoryInst() local
3838 ResultPtr = AddrMode.BaseReg; in optimizeMemoryInst()
3845 if (ResultPtr || AddrMode.Scale != 1) in optimizeMemoryInst()
3848 ResultPtr = AddrMode.ScaledReg; in optimizeMemoryInst()
3853 if (ResultPtr) in optimizeMemoryInst()
3856 ResultPtr = AddrMode.BaseGV; in optimizeMemoryInst()
3862 if (!ResultPtr && AddrMode.BaseReg) { in optimizeMemoryInst()
3863 ResultPtr = in optimizeMemoryInst()
3866 } else if (!ResultPtr && AddrMode.Scale == 1) { in optimizeMemoryInst()
3867 ResultPtr = in optimizeMemoryInst()
3872 if (!ResultPtr && in optimizeMemoryInst()
3875 } else if (!ResultPtr) { in optimizeMemoryInst()
3930 if (ResultPtr->getType() != I8PtrTy) in optimizeMemoryInst()
3931 ResultPtr = Builder.CreateBitCast(ResultPtr, I8PtrTy); in optimizeMemoryInst()
3932 ResultPtr = Builder.CreateGEP(I8Ty, ResultPtr, ResultIndex, "sunkaddr"); in optimizeMemoryInst()
3939 SunkAddr = ResultPtr; in optimizeMemoryInst()
3941 if (ResultPtr->getType() != I8PtrTy) in optimizeMemoryInst()
3942 ResultPtr = Builder.CreateBitCast(ResultPtr, I8PtrTy); in optimizeMemoryInst()
3943 SunkAddr = Builder.CreateGEP(I8Ty, ResultPtr, ResultIndex, "sunkaddr"); in optimizeMemoryInst()