[PATCH] D61047: [X86] Delay creating index register negations during address matching until after we know for sure the match will succeed

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 24 11:32:29 PDT 2019


spatel added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:267
                                    SDValue &Segment) {
+      assert(!AM.NegateIndex && "Index should have been negated!");
       Base = (AM.BaseType == X86ISelAddressMode::FrameIndexBase)
----------------
Can we deal with negation here rather than duplicating code in the callers?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61047/new/

https://reviews.llvm.org/D61047





More information about the llvm-commits mailing list