Skip to content

Conversation

@vporpo
Copy link
Contributor

@vporpo vporpo commented Jan 17, 2025

If the operands of a CmpInst are constants then it gets folded into a constant. Therefore CmpInst::create() should return a Value*, not a Constant* and should handle the creation of the constant correctly.

If the operands of a CmpInst are constants then it gets folded into a constant.
Therefore CmpInst::create() should return a Value*, not a Constant* and should
handle the creation of the constant correctly.
@vporpo vporpo merged commit 22d4ff1 into llvm:main Jan 17, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants