Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLVM objmode compilation error: Instruction does not dominate all uses #9574

Open
Azmisov opened this issue May 14, 2024 · 1 comment
Open
Labels
bug - failure to compile Bugs: failed to compile valid code

Comments

@Azmisov
Copy link

Azmisov commented May 14, 2024

Reproducer:

from numba import float64, njit, objmode
import numpy as np

def cbk(arr):
	print(arr)

@njit
def test(flag):
	arr = np.zeros((10,), float64)
	if flag:
		with objmode():
			print("test")
	with objmode():
		cbk(arr)

test(1)

With output:

RuntimeError: Instruction does not dominate all uses!
  %.69 = bitcast i8* %.68 to { i8*, i8* }*
  %.141 = getelementptr inbounds { i8*, i8* }, { i8*, i8* }* %.69, i32 0, i32 1
@guilhermeleobas
Copy link
Collaborator

Thanks for the report, can reproduce this bug on Numba main.

@guilhermeleobas guilhermeleobas added the bug - failure to compile Bugs: failed to compile valid code label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug - failure to compile Bugs: failed to compile valid code
Projects
None yet
Development

No branches or pull requests

2 participants