[llvm] [InferAddressSpaces] apply InferAddressSpaces to inttoptr-zext-ptrtoint address expression. (PR #79108)
    Alexander Richardson via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Feb  3 21:37:07 PST 2024
    
    
  
================
@@ -266,38 +266,67 @@ static Type *getPtrOrVecOfPtrsWithNewAS(Type *Ty, unsigned NewAddrSpace) {
   return Ty->getWithNewType(NPT);
 }
 
-// Check whether that's no-op pointer bicast using a pair of
-// `ptrtoint`/`inttoptr` due to the missing no-op pointer bitcast over
-// different address spaces.
-static bool isNoopPtrIntCastPair(const Operator *I2P, const DataLayout &DL,
-                                 const TargetTransformInfo *TTI) {
+// Return valid IntToPtr Operator if it's a no-op pointer bitcast using a pair
----------------
arichardson wrote:
```suggestion
// Return valid PtrToInt Operator if it's a no-op pointer bitcast using a pair
```
https://github.com/llvm/llvm-project/pull/79108
    
    
More information about the llvm-commits
mailing list