[llvm] [SandboxIR] Added isVolatile args to existing LoadInst::create function (PR #100850)
Julius Alexandre via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 27 15:14:08 PDT 2024
================
@@ -764,11 +764,22 @@ define void @foo(ptr %arg0, ptr %arg1) {
// Check create(InsertBefore)
sandboxir::LoadInst *NewLd =
sandboxir::LoadInst::create(Ld->getType(), Arg1, Align(8),
- /*InsertBefore=*/Ret, Ctx, "NewLd");
+ /*InsertBefore=*/Ret, Ctx,
+ Ld->isVolatile(), "NewLd");
----------------
medievalghoul wrote:
Fixed it
https://github.com/llvm/llvm-project/pull/100850
More information about the llvm-commits
mailing list