summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/Mem2Reg.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-08-16 16:08:11 +0000
committerSanjay Patel <spatel@rotateright.com>2016-08-16 16:08:11 +0000
commit1e5b2d1611fbaf46b004b80f3800729ec68b2a6b (patch)
tree4fd05a1a05b7209e5b3fbb5c60a3d0a0ea740618 /llvm/lib/Transforms/Utils/Mem2Reg.cpp
parent23c2eac34dc4560a976be703ec7a45198abce12c (diff)
downloadbcm5719-llvm-1e5b2d1611fbaf46b004b80f3800729ec68b2a6b.tar.gz
bcm5719-llvm-1e5b2d1611fbaf46b004b80f3800729ec68b2a6b.zip
[InstCombine] use m_APInt in foldICmpWithConstant; NFCI
There's some formatting and pointer deref ugliness here that I intend to fix in subsequent patches. The overall goal is to refactor the obnoxiously long switch and incrementally remove the restriction to scalar types (allow folds for vector splats). This patch introduces the use of m_APInt which means the RHSV reference is now a pointer (and may have matched a vector splat), but the check of 'RHS' remains, so vector folds are disallowed and no functional change is intended. llvm-svn: 278816
Diffstat (limited to 'llvm/lib/Transforms/Utils/Mem2Reg.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud