[LLVMdev] Question about Instruction comparison

Tanya Brethour tonic at nondot.org
Mon Nov 24 13:58:02 PST 2003


> I have been looking over the doxygen documentation as well as the llvm
> code.  Is there a standard way to check to see if two instructions are
> identical (i.e., Inst1 == Inst2 does not work)?

If you want to check if two instructions are the same instruction, you
should be able to just compare pointers.

-Tanya






More information about the llvm-dev mailing list