[PATCH] D38849: [RS4GC] Look through vector bitcasts when looking for base pointer

Anna Thomas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 12 17:02:03 PDT 2017


anna added inline comments.


================
Comment at: test/Transforms/RewriteStatepointsForGC/vector-bitcast.ll:19
+  %ptr= extractelement <8 x i32 addrspace(1)*> %bc, i32 7
+  switch i6 undef, label %bb3 [
+    i6 4, label %bb2
----------------
Could you simplify this to a conditional branch and avoid the use of undef here and below in the call?
Can this be triggered just through straightline code?


https://reviews.llvm.org/D38849





More information about the llvm-commits mailing list