summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/stackmap-shadow-optimization.ll
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-09-05 05:26:36 +0000
committerCraig Topper <craig.topper@intel.com>2017-09-05 05:26:36 +0000
commit4c766a0559fb59b39e2feb3c9bf3c056d4241211 (patch)
tree52825862c92117db3b579ee7b81e793d33b72be4 /llvm/test/CodeGen/X86/stackmap-shadow-optimization.ll
parent80577cb6d43ab391669811940fd894bd256042a2 (diff)
downloadbcm5719-llvm-4c766a0559fb59b39e2feb3c9bf3c056d4241211.tar.gz
bcm5719-llvm-4c766a0559fb59b39e2feb3c9bf3c056d4241211.zip
[InstCombine] In foldSelectIntoOp, avoid creating a Constant before we know for sure we're going to use it and avoid an unnecessary call to m_APInt.
Instead of creating a Constant and then calling m_APInt with it (which will always return true). Just create an APInt initially, and use that for the checks in isSelect01 function. If it turns out we do need the Constant, create it from the APInt. This is a refactor for a future patch that will do some more checks of the constant values here. llvm-svn: 312517
Diffstat (limited to 'llvm/test/CodeGen/X86/stackmap-shadow-optimization.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud