Displaying 1 result from an estimated 1 matches for "simplifybinop".
2017 Apr 26
2
Is there any real downside to constructing the new SimplifyQuery once
...ast majority of uses actually:
A. don't change the relevant query arguments over the lifetime of the pass
B. actually have more information sitting around than they are passing
along.
For example, instcombine has a DomTree and AssumptionCache that are
required, but it doesn't pass them to SimplifyBinOp in a bunch of cases.
JumpThreading has TLI but doesn't pass it to SimplifyCmpInst.
CVP at least admits it has a problem:
"CorrelatedValuePropagation.cpp: // FIXME: Provide TLI, DT, AT to
SimplifyInstruction.
CorrelatedValuePropagation.cpp: if (Value *V = SimplifyInstruction(P, DL))
{
&...