Open Ralender opened 2 months ago
Any ideas on where to start in the code base if I want to look further into this?
Any ideas on where to start in the code base if I want to look further into this?
llvm\lib\Transforms\InstCombine\InstCombineAndOrXor.cpp
is there any real world examples?
All the following expression are the equivalent. and should be optimized into
~((y | z) ^ x)
but clang -O3 is far from optimizing into into the optimal form.
gcc is much closer to generating the optimal code than clang. https://godbolt.org/z/x6aeWxjYG