[llvm] [InstCombine] InstCombine should fold frexp of select to select of frexp (PR #121227)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 9 10:27:24 PST 2025


vortex73 wrote:

> Is it possible to support this in
> 
> https://github.com/llvm/llvm-project/blob/0fa59c636278324aaea55c3bc60489af88646a32/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp#L3738-L3747
> instead? I.e. do the transform in two steps, first pushing frexp over select, and then the extractvalue? (Probably implementing #112408 would automatically do this?)

Hmm, would need to look into this. The original issue mentioned that it should be rooted in `extractvalue` which informed my decisions. Could you elaborate?

https://github.com/llvm/llvm-project/pull/121227


More information about the llvm-commits mailing list