Verifier: Fix assertion on range metadata with equal bounds
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 28 Jun 2023 13:14:06 +0000 (09:14 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 30 Jun 2023 16:31:32 +0000 (12:31 -0400)
commita2ce822a096517e36fbc6ac9404b0b5ef5e6a2bc
treeb90ce646d4d101c93bb8096314f3a04cbe3146f6
parentf3c9e5807fe91ef1f96d03e3a11e5971006d1efe
Verifier: Fix assertion on range metadata with equal bounds

This only worked if the same values were the min or max. We also seem
to be missing proper assembler tests for this.
llvm/lib/IR/Verifier.cpp
llvm/test/Assembler/range.ll [new file with mode: 0644]
llvm/test/Verifier/range-1.ll