llvm-project/llvm/lib/Transforms
Mehdi Amini 9ee054aea8 ValueMapper: fix typo in minor optimization on constant mapping (NFC)
If every operands of a constant are mapping to themselves, and the
type does not change, we have an early exit as acknowledged in the
comment:

  // Otherwise, we have some other constant to remap.  Start by checking to see
  // if all operands have an identity remapping.

However instead of checking for identity the code was checking if the
operands were mapped to the constant itself, which is rarely true.

As a consequence, the coverage report showed that the early exit was
never taken.

llvm-svn: 270944
2016-05-27 00:32:12 +00:00
..
Hello Add auto-exporting of symbols from tools so that plugins work on Windows 2016-05-26 11:16:43 +00:00
IPO Move whole-program virtual call optimization pass after function attribute inference in LTO pipeline. 2016-05-25 21:26:14 +00:00
InstCombine [InstCombine] Catch more bswap cases missed due to zext and truncs. 2016-05-26 14:58:51 +00:00
Instrumentation Attach profile summary in IR based instrumentation pass. 2016-05-26 22:57:11 +00:00
ObjCARC Unify XDEBUG and EXPENSIVE_CHECKS (into the latter), and add an option to the cmake build to enable them. 2016-04-29 15:22:48 +00:00
Scalar [LoopUnrollAnalyzer] Fix a crash in analyzeLoopUnrollCost. 2016-05-26 21:42:51 +00:00
Utils ValueMapper: fix typo in minor optimization on constant mapping (NFC) 2016-05-27 00:32:12 +00:00
Vectorize [BBVectorize] Don't vectorize selects with a scalar condition and vector operands. 2016-05-26 18:43:57 +00:00
CMakeLists.txt
LLVMBuild.txt