[PATCH] D102788: [OpaquePtr] Make atomicrmw work with opaque pointers

Justin Bogner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 25 12:02:41 PDT 2021


bogner added a comment.

Looks like you've already reverted this, but I happened to bugpoint a test case for the failure if you happen to need it. The issue is with the call to `popValue` if the value the `atomicrmw` is using hasn't been seen by the parser yet.

  ; RUN: opt %s -o %t.bc
  ; RUN: opt %t.bc -o /dev/null
  
  define void @f() {
  entry:
    br label %def
  
  use:
    %x = atomicrmw add i32 addrspace(1)* undef, i32 %y monotonic, align 4
    br label %exit
  
  def:
    %y = add i32 undef, undef
    br i1 undef, label %use, label %exit
  
  exit:
    ret void
  }


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102788



More information about the llvm-commits mailing list