Created a llvm pass for finding and hoisting anticipated expressions and tested it with debug build succesfully, but when tested with release build, it gives incorrect output.
When running on various .ll inputs, i tested it with debug build and it succesfully worked. Then I tested the same code(my pass) with release build, it failed with that.
Please provide more details about “it failed.” There’s really nothing to go on here.