[PATCH] D88995: Support vectors in CastInst::isBitOrNoopPointerCastable

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 12:02:39 PDT 2020


reames added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/load.ll:389
+; CHECK-NEXT:    [[X:%.*]] = load <2 x i64>, <2 x i64>* [[P:%.*]], align 16
+; CHECK-NEXT:    [[Y_CAST:%.*]] = inttoptr <2 x i64> [[X]] to <2 x i8*>
+; CHECK-NEXT:    call void @use.v2.p0(<2 x i8*> [[Y_CAST]])
----------------
lebedev.ri wrote:
> This is going in the opposite direction than what we've just recently disscussed/estabilished - we can't/shouldn't introduce int<->ptr casts that weren't in the source code.
You need to give a lot more context here.  This is simple load forwarding - as done by e.g. GVN.  If you want to change direction, I think that should be separated from this patch.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88995/new/

https://reviews.llvm.org/D88995



More information about the llvm-commits mailing list