[PATCH] Avoid FP conversions when calling bitcasted / alias functions

Matt Arsenault Matthew.Arsenault at amd.com
Tue Jul 30 13:19:35 PDT 2013


  Where would be the best place to put a version / wrapper for getCastOpcode that would be aware of the pointer sizes? getCastOpcode asserts on invalid casts, and the FIXME I added is to add an assertion for casts between address spaces. There are a few places around that can hit that assertion when called with a pointer. (e.g., one place in SCEV where the sizes are known to match, and will try to get a bitcast but it will fail on the assertion)

  Should I do something similar to what isEliminableCastPair does, and add parameters to optionally provide the int types that the pointers use?

http://llvm-reviews.chandlerc.com/D1058



More information about the llvm-commits mailing list