[PATCH] D62101: NewGVN: Handle addrspacecast

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 18 08:24:25 PDT 2019


arsenm created this revision.
arsenm added reviewers: dberlin, davide, fhahn.
Herald added subscribers: Prazek, wdng.

The AllConstant check needs to be moved out of the if/else if chain to
avoid a test regression. The "there is no SimplifyZExt" comment puzzles me,
since there is SimplifyCastInst. Additionally, the Simplify* calls
seem to not see the operand as constant, so this needs to be tried if
the simplify failed.


https://reviews.llvm.org/D62101

Files:
  lib/Transforms/Scalar/NewGVN.cpp
  test/Transforms/NewGVN/addrspacecast.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62101.200151.patch
Type: text/x-patch
Size: 3861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190518/289d9e77/attachment.bin>


More information about the llvm-commits mailing list