[PATCH] D29357: InferAddressSpaces: Handle more cases with constant select operands

Justin Lebar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 17:35:29 PST 2017


jlebar accepted this revision.
jlebar added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/Transforms/Scalar/InferAddressSpaces.cpp:353
+  Type *NewPtrTy
+    = Operand->getType()->getPointerElementType()->getPointerTo(NewAddrSpace);
+
----------------
Nit, reformat


================
Comment at: lib/Transforms/Scalar/InferAddressSpaces.cpp:460
+      ConstantExpr::getAddrSpaceCast(Src0, TargetType),
+      ConstantExpr::getAddrSpaceCast(Src1, TargetType));
+    }
----------------
Indentation


https://reviews.llvm.org/D29357





More information about the llvm-commits mailing list