mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
81d4b8478e
Spin-off from D75407. As described there, ConstantFoldConstant() currently returns null for non-ConstantExpr/ConstantVector inputs, but otherwise always returns non-null, independently of whether any folding has happened or not. This is confusing and makes consumer code more complicated. I would expect either that ConstantFoldConstant() returns only if it actually folded something, or that it always returns non-null. I'm going to the latter possibility here, which appears to be more useful considering existing usage. Differential Revision: https://reviews.llvm.org/D75543 |
||
---|---|---|
.. | ||
AggressiveInstCombine.cpp | ||
AggressiveInstCombineInternal.h | ||
CMakeLists.txt | ||
LLVMBuild.txt | ||
TruncInstCombine.cpp |