aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-06-05 09:57:57 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-06-05 09:57:57 +0000
commit6d8081835d011791d946e758f9b2d1979e09e1de (patch)
treec2c62aebe80f8b4d86c7897ef264fc7267d0fc35 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent10d6d1689b15229fe44912f30872117a932a0119 (diff)
downloadllvm-6d8081835d011791d946e758f9b2d1979e09e1de.zip
llvm-6d8081835d011791d946e758f9b2d1979e09e1de.tar.gz
llvm-6d8081835d011791d946e758f9b2d1979e09e1de.tar.bz2
[InstCombine] Rephrase fix to SimplifyWithOpReplaced
I don't have the IR which is causing the build bot breakage but I can postulate as to why they are timing out: 1. SimplifyWithOpReplaced was stripping flags from the simplified value. 2. visitSelectInstWithICmp was overriding SimplifyWithOpReplaced because it's simplification wasn't correct. 3. InstCombine would revisit the add instruction and note that it can rederive the flags. 4. By modifying the value, we chose to revisit instructions which reuse the value. One of the instructions is the original select, causing LLVM to never reach fixpoint. Instead, strip the flags only when we are sure we are going to perform the simplification. llvm-svn: 239141
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions