[ConstantFold] Support loads in ConstantFoldInstOperands()
authorNikita Popov <npopov@redhat.com>
Thu, 30 Jun 2022 10:16:57 +0000 (12:16 +0200)
committerNikita Popov <npopov@redhat.com>
Thu, 30 Jun 2022 10:18:15 +0000 (12:18 +0200)
commit0445c340ff48b9ba53e69933cef0af703bb5ea0f
tree0408b55b820cc53d267d7699466429b962c75124
parent364673dbe783164e94ba801399a3587290b8cc66
[ConstantFold] Support loads in ConstantFoldInstOperands()

This allows all constant folding to happen through a single
function, without requiring special handling for loads at each
call-site.

This may not be NFC because some callers currently don't do that
special handling.
llvm/lib/Analysis/ConstantFolding.cpp
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Analysis/ScalarEvolution.cpp