[PATCH] Teach CodeGenPrepare about address spaces

Eli Friedman eli.friedman at gmail.com
Thu Sep 5 15:16:03 PDT 2013


  LGTM.


================
Comment at: lib/Transforms/Scalar/CodeGenPrepare.cpp:1035
@@ -1034,2 +1034,3 @@
+    // XXX - Why do we know this?
     return MatchAddr(AddrInst->getOperand(0), Depth);
   case Instruction::IntToPtr:
----------------
Because instcombine performs that transformation?  I'm not sure either. :)


http://llvm-reviews.chandlerc.com/D1611



More information about the llvm-commits mailing list