1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/lib/Transforms
Craig Topper ae34cf0b5a [InstCombine] Simplify and inline FoldOrWithConstants/FoldXorWithConstants
Summary:
These functions were overly complicated. The body of this function was rechecking for an And operation to find the constant, but we already knew we were looking at two Ands ORed together and the pieces are in variables. We already had earlier nearby code that checked for ConstantInts. So just inline the remaining parts into the earlier code.

Next step is to use m_APInt instead of ConstantInt.

Reviewers: spatel, efriedma, davide, majnemer

Reviewed By: spatel

Subscribers: zzheng, llvm-commits

Differential Revision: https://reviews.llvm.org/D36439

llvm-svn: 310806
2017-08-14 00:04:21 +00:00
..
Coroutines Remove inline keyword from inline classof methods 2017-06-29 19:35:17 +00:00
Hello Add auto-exporting of symbols from tools so that plugins work on Windows 2016-05-26 11:16:43 +00:00
InstCombine [InstCombine] Simplify and inline FoldOrWithConstants/FoldXorWithConstants 2017-08-14 00:04:21 +00:00
Instrumentation [sanitizer-coverage] Change cmp instrumentation to distinguish const operands 2017-08-10 15:00:13 +00:00
IPO [OptDiag] Updating Remarks in SampleProfile 2017-08-11 21:12:04 +00:00
ObjCARC Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Scalar [BDCE] clear poison generators after turning a value into zero (PR33695, PR34037) 2017-08-12 16:41:08 +00:00
Utils [DebugCounter] Move the semicolon out of the DEBUG_COUNTER macro and require it to be placed at the end of each use. 2017-08-10 17:48:11 +00:00
Vectorize [LoopVectorize] Fix assertion failure in Fcmp vectorization 2017-08-08 18:07:44 +00:00
CMakeLists.txt [coroutines] Part 3 of N: Adding Boilerplate for Coroutine Passes 2016-07-28 21:04:31 +00:00
LLVMBuild.txt [coroutines] Part 3 of N: Adding Boilerplate for Coroutine Passes 2016-07-28 21:04:31 +00:00