[PATCH] D123300: [Clang] Enable opaque pointers by default

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 15 09:19:17 PDT 2022


aeubanks added a comment.

  $ cat /tmp/a.ll 
  target triple = "thumbv8-unknown-linux-gnueabihf"
  
  define void @zot() {
  bb:
    br label %bb1
  
  bb1:                                              ; preds = %bb1, %bb
    %tmp = phi ptr [ null, %bb ], [ %tmp2, %bb1 ]
    store ptr %tmp, ptr %tmp, align 4
    %tmp2 = getelementptr inbounds ptr, ptr %tmp, i32 1
    %tmp3 = icmp eq ptr %tmp2, null
    br i1 %tmp3, label %bb4, label %bb1
  
  bb4:                                              ; preds = %bb1
    ret void
  }
  $ opt -passes=loop-vectorize /tmp/a.ll -disable-output
  # crash


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123300



More information about the llvm-commits mailing list